aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-29 19:56:45 +0100
committerSven Gothel <[email protected]>2023-01-29 19:56:45 +0100
commite96aeb6e9acd2b1435f5fad244a1488e74a3a6d6 (patch)
tree68a4466d97b006e63f12040ff2db0a24d263344c /make
parent516d3d57eb54f6fe95d842d29a2929e024ee8f34 (diff)
GDIUtil: Add GetMonitor*() variants incl. PixelScale; NEWT MonitorDevice: Add 64-bit nativeHandle (Windows HMONITOR), add PixelScale for Windows
Diffstat (limited to 'make')
-rw-r--r--make/config/nativewindow/win32-lib.cfg2
-rw-r--r--make/stub_includes/win32/gluegen/windows.h1
-rw-r--r--make/stub_includes/win32/window-lib.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/make/config/nativewindow/win32-lib.cfg b/make/config/nativewindow/win32-lib.cfg
index da91f6944..d4cb15c41 100644
--- a/make/config/nativewindow/win32-lib.cfg
+++ b/make/config/nativewindow/win32-lib.cfg
@@ -31,7 +31,9 @@ CustomCCode #undef WIN32_LEAN_AND_MEAN
CustomCCode #include <gluegen_stdint.h>
CustomCCode #include <gluegen_stddef.h>
CustomCCode #include <wingdi.h>
+CustomCCode #include "WindowsUser.h"
CustomCCode #include "WindowsDWM.h"
+CustomCCode #include "WindowsSHC.h"
CustomCCode extern HINSTANCE GetApplicationHandle();
diff --git a/make/stub_includes/win32/gluegen/windows.h b/make/stub_includes/win32/gluegen/windows.h
index 46a560767..d751f8082 100644
--- a/make/stub_includes/win32/gluegen/windows.h
+++ b/make/stub_includes/win32/gluegen/windows.h
@@ -38,6 +38,7 @@ typedef HANDLE HINSTANCE;
typedef HANDLE HPALETTE;
typedef HANDLE HWND;
typedef HANDLE HRGN;
+typedef HANDLE HMONITOR;
typedef const char* LPCSTR;
typedef void* PVOID;
typedef void* LPVOID;
diff --git a/make/stub_includes/win32/window-lib.c b/make/stub_includes/win32/window-lib.c
index 25355cdcd..8309b3b21 100644
--- a/make/stub_includes/win32/window-lib.c
+++ b/make/stub_includes/win32/window-lib.c
@@ -1,3 +1,5 @@
#include <windows.h>
#include <wingdi.h>
+#include <WindowsUser.h>
#include <WindowsDWM.h>
+#include <WindowsSHC.h>