From 0eef561e7b9bf54b764e7e7254b98530aac5384f Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:11:15 +0100 Subject: Windows: make Ctrl/+/-/0/ scaling system-wide if all screens have same DPI --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H | 4 +++- 1 file changed, 3 insertions(+), 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 3bbd51d59..816b667f6 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H @@ -41,6 +41,8 @@ protected: public: float dpi[MAX_SCREENS][2]; + enum APP_SCALING_CAPABILITY scaling_capability; + void update_scaling_capability(); Fl_WinAPI_Screen_Driver(); // --- display management int visual(int flags) FL_OVERRIDE; @@ -72,7 +74,7 @@ public: void open_display_platform() FL_OVERRIDE; void offscreen_size(Fl_Offscreen off, int &width, int &height) FL_OVERRIDE; APP_SCALING_CAPABILITY rescalable() FL_OVERRIDE { - return PER_SCREEN_APP_SCALING; + return scaling_capability; } float scale(int n) FL_OVERRIDE { return scale_of_screen[n]; -- cgit v1.2.3