diff options
| author | Manolo Gouy <Manolo> | 2017-06-01 17:41:42 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-01 17:41:42 +0000 |
| commit | 12fd93485faa0c6341b11c77b336d626f3db53cd (patch) | |
| tree | fadcbdf88bd7921ae37c42f666b0e030685a133d /src/Fl_Screen_Driver.cxx | |
| parent | 0960d07315977a5bc5424371e6a5fc1f6a7f33c1 (diff) | |
Remove the 'defined(WIN32)' and 'defined(__APPLE__)' preprocessor directives introduced at r.12239
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12247 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
| -rw-r--r-- | src/Fl_Screen_Driver.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx index 1ccc7ff5f..8de5f606c 100644 --- a/src/Fl_Screen_Driver.cxx +++ b/src/Fl_Screen_Driver.cxx @@ -355,8 +355,6 @@ int Fl_Screen_Driver::input_widget_handle_key(int key, unsigned mods, unsigned s } -#if defined(FLTK_HIDPI_SUPPORT) || !(defined(WIN32) || defined(__APPLE__)) - void Fl_Screen_Driver::rescale_all_windows_from_screen(int screen, float f) { float old_f = this->scale(screen); @@ -482,22 +480,18 @@ int Fl_Screen_Driver::scale_handler(int event) return 0; } -#endif // FLTK_HIDPI_SUPPORT - // determine the scaling value used at startup time (helps supporting HiDPI displays) float Fl_Screen_Driver::default_scale_factor() { float factor = 1; -#if defined(FLTK_HIDPI_SUPPORT) || !(defined(WIN32) || defined(__APPLE__)) char *p = 0; - if ((p = getenv("FLTK_SCALING_FACTOR"))) { + if ((p = fl_getenv("FLTK_SCALING_FACTOR"))) { sscanf(p, "%f", &factor); } else { factor = desktop_scale_factor(); } -#endif // FLTK_HIDPI_SUPPORT return factor; } @@ -511,9 +505,7 @@ void Fl_Screen_Driver::open_display() if (rescalable()) { float factor = default_scale_factor(); for (int i = 0; i < screen_count(); i++) scale(i, factor); -#if defined(FLTK_HIDPI_SUPPORT) || !(defined(WIN32) || defined(__APPLE__)) Fl::add_handler(Fl_Screen_Driver::scale_handler); -#endif Fl_Graphics_Driver::default_driver().scale(factor); } } |
