diff options
| author | Manolo Gouy <Manolo> | 2017-06-19 11:37:01 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-19 11:37:01 +0000 |
| commit | 4e72aac792554fca43303849b53af159cc5579ca (patch) | |
| tree | 227137634119f7d3eb4cc8991bf3fc6accb3a2d9 /src/Fl_win32.cxx | |
| parent | 701fa00c7c54a1260f05ef41ee11592059d9f652 (diff) | |
HiDPI support under WIN32 platform: fix Fl_WinAPI_Window_Driver::capture_titlebar_and_borders() under XP.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 30e01c0ea..d54504c03 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2498,7 +2498,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top if (htop) { r_top = dr->read_win_rectangle_unscaled(NULL, r.left, r.top, r.right - r.left, htop, 0); top = Fl_Shared_Image::get(r_top); - if (DWMscaling >= 1.1) top->scale(ww, htop/DWMscaling, 0, 1); + if (DWMscaling != 1) top->scale(ww, htop/DWMscaling, 0, 1); } if (wsides) { r_left = dr->read_win_rectangle_unscaled(NULL, r.left, r.top + htop, wsides, h()*scaling, 0); @@ -2507,7 +2507,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top right = Fl_Shared_Image::get(r_right); r_bottom = dr->read_win_rectangle_unscaled(NULL, r.left, r.bottom-hbottom, ww, hbottom, 0); bottom = Fl_Shared_Image::get(r_bottom); - if (scaling >= 1.1) { + if (scaling != 1) { left->scale(wsides, h(), 0, 1); right->scale(wsides, h(), 0, 1); bottom->scale(ww, hbottom, 0, 1); |
