diff options
| -rw-r--r-- | src/Fl_win32.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 5bd64165f..04facd944 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2390,7 +2390,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top top = left = bottom = right = NULL; if (!shown() || parent() || !border() || !visible()) return; int wsides, hbottom, bt; - float scaling; + float scaling = 1; RECT r = border_width_title_bar_height(wsides, hbottom, bt, &scaling); int htop = bt + hbottom; Fl_Surface_Device *previous = Fl_Surface_Device::surface(); diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx index 88afaecbf..eb8e13b33 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.cxx @@ -112,7 +112,7 @@ int Fl_WinAPI_Window_Driver::decorated_w() int Fl_WinAPI_Window_Driver::decorated_h() { int bt, bx, by; - float scaling; + float scaling = 1; border_width_title_bar_height(bx, by, bt, &scaling); return h() + bt/scaling + 2 * by; } |
