From 62bce5b50a25d99aff5fc792132dd94d74744268 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 16 Jun 2019 12:00:38 +0200 Subject: Make FLTK Windows apps "Per-Monitor-V2 DPI Aware" Per-Monitor V2 awareness mode is supported on Windows 10 1703 or above and has window title bars correctly scaled on HighDPI screens. Before this commit, FLTK Windows apps were "Per-Monitor-V1 DPI Aware". FLTK apps detect at run-time whether the V2 mode is possible. --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H index 605f3bffd..09beb1108 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H @@ -36,7 +36,6 @@ class FL_EXPORT Fl_WinAPI_Screen_Driver : public Fl_Screen_Driver protected: RECT screens[MAX_SCREENS]; RECT work_area[MAX_SCREENS]; - float dpi[MAX_SCREENS][2]; float scale_of_screen[MAX_SCREENS]; static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM); @@ -44,6 +43,7 @@ protected: int get_mouse_unscaled(int &mx, int &my); public: + float dpi[MAX_SCREENS][2]; Fl_WinAPI_Screen_Driver() : Fl_Screen_Driver() { for (int i = 0; i < MAX_SCREENS; i++) scale_of_screen[i] = 1; } -- cgit v1.2.3