diff options
| author | Manolo Gouy <Manolo> | 2017-07-27 14:48:27 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-27 14:48:27 +0000 |
| commit | 4a85b82ffea7d737d517c0659616582b6d26cb37 (patch) | |
| tree | 75c0ae03c0c7a4bb6a11cb7ec8d2932e17d65458 /src | |
| parent | 3f572e327f0c2ad8e4903c9be06796386a18c4d4 (diff) | |
Simpler initialisation of the 'scale' local variable in WndProc().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index b3aa752df..10f266461 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1116,7 +1116,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar //fl_msg.lPrivate = ??? Fl_Window *window = fl_find(hWnd); - float scale = window ? Fl::screen_driver()->scale(window->driver()->screen_num()) : Fl_Graphics_Driver::default_driver().scale(); + float scale = (window ? Fl::screen_driver()->scale(window->driver()->screen_num()) : 1); if (window) switch (uMsg) { |
