summaryrefslogtreecommitdiff
path: root/alf/alf.h
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alf.h')
-rw-r--r--alf/alf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/alf/alf.h b/alf/alf.h
index d21a295..16767a7 100644
--- a/alf/alf.h
+++ b/alf/alf.h
@@ -76,10 +76,22 @@ typedef struct {
BOOL (WINAPI *RemoveWindowSubclass)(HWND, ALF_COMPAT_SUBCLASSPROC, UINT_PTR);
int (WINAPI *GetSystemMetricsForDpi)(int, UINT);
BOOL (WINAPI *IsAppThemed)(void);
+ UINT (WINAPI *GetDpiForWindow)(HWND);
+ BOOL (WINAPI *SystemParametersInfoForDpi)(UINT,UINT,PVOID,UINT,UINT);
+ BOOL (WINAPI *AdjustWindowRectExForDpi)(LPRECT,DWORD,BOOL,DWORD,UINT);
} ALFCompatFunctions;
typedef struct ALFAppPriv *ALFAPP;
+typedef enum {
+ ALF_DPI_AWARENESS_UNAWARE,
+ ALF_DPI_AWARENESS_SYSTEM_AWARE,
+ ALF_DPI_AWARENESS_PER_MONITOR_AWARE_V2
+} ALFDpiAwareness;
+
+void
+ALF_SetDpiAwareness(ALFDpiAwareness awareness);
+
ALFAPP
ALF_CreateApplication(HINSTANCE hInstance);