summaryrefslogtreecommitdiffhomepage
path: root/editor/dpi.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-22 03:19:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-22 03:19:29 +0100
commit0fa4a8542bf9eda8bd9c28da199b3e90e04279b9 (patch)
tree8a91894a3b9eebdb8a7ef3c4b3e94d169efcf8ea /editor/dpi.cpp
parent966ac722d72c8d89e621987090b19f2bde0cb58c (diff)
wip
Diffstat (limited to 'editor/dpi.cpp')
-rw-r--r--editor/dpi.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/dpi.cpp b/editor/dpi.cpp
new file mode 100644
index 00000000..5893ac96
--- /dev/null
+++ b/editor/dpi.cpp
@@ -0,0 +1,13 @@
+#ifdef _WIN32
+#include "app.hpp"
+#include <windows.h>
+
+namespace floormat {
+
+void app::set_dpi_aware()
+{
+ SetProcessDPIAware();
+}
+
+} // namespace floormat
+#endif