diff options
| author | Manolo Gouy <Manolo> | 2017-06-19 11:48:16 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-19 11:48:16 +0000 |
| commit | cd1fd95f056c726cfd6417f29d5bce00c43b8253 (patch) | |
| tree | aa50b8fb0a55f6ed894f55611674439b487ccdd2 /src/drivers | |
| parent | 4e72aac792554fca43303849b53af159cc5579ca (diff) | |
HiDPI support under WIN32: fix fullscreen mode when scaling factor is > 1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index 24a330183..14a66be1f 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -526,7 +526,8 @@ void Fl_WinAPI_Window_Driver::make_fullscreen(int X, int Y, int W, int H) { SetWindowLong(fl_xid(w), GWL_STYLE, flags); // SWP_NOSENDCHANGING is so that we can override size limits - SetWindowPos(fl_xid(w), HWND_TOP, X, Y, W, H, SWP_NOSENDCHANGING | SWP_FRAMECHANGED); + float s = Fl::screen_driver()->scale(screen_num()); + SetWindowPos(fl_xid(w), HWND_TOP, X*s, Y*s, W*s, H*s, SWP_NOSENDCHANGING | SWP_FRAMECHANGED); } #endif // !defined(FL_DOXYGEN) // FIXME - silence Doxygen warning |
