summaryrefslogtreecommitdiffhomepage
path: root/editor/dpi.cpp
diff options
context:
space:
mode:
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