From 8dccfc88386561782d9b78900b283cedad2e59bb Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 3 Jul 2017 17:31:57 +0000 Subject: HiDPI support under WIN32 platform: completed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Screen_Driver.H | 2 +- FL/Fl_Window_Driver.H | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index 9d016043d..7f229e22b 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -167,7 +167,7 @@ public: static int scale_handler(int event); virtual void init_workarea() {} virtual float desktop_scale_factor() {return 1;} - float default_scale_factor(); + void use_startup_scale_factor(); enum APP_SCALING_CAPABILITY { NO_APP_SCALING = 0, ///< The platform does not support rescaling. SYSTEMWIDE_APP_SCALING, ///< The platform supports rescaling with the same factor for all screens. diff --git a/FL/Fl_Window_Driver.H b/FL/Fl_Window_Driver.H index 20e3503fc..9a588a46e 100644 --- a/FL/Fl_Window_Driver.H +++ b/FL/Fl_Window_Driver.H @@ -108,6 +108,8 @@ public: void overlay(Fl_Window *o) { if (pWindow->as_overlay_window()) pWindow->as_overlay_window()->overlay_ = o; } + + void resize_after_scale_change(int ns, float old_f, float new_f); // --- window data virtual int decorated_w() = 0; -- cgit v1.2.3