mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
Avoid compilation warnings with -Wmaybe-uninitialized
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -2390,7 +2390,7 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top
|
|||||||
top = left = bottom = right = NULL;
|
top = left = bottom = right = NULL;
|
||||||
if (!shown() || parent() || !border() || !visible()) return;
|
if (!shown() || parent() || !border() || !visible()) return;
|
||||||
int wsides, hbottom, bt;
|
int wsides, hbottom, bt;
|
||||||
float scaling;
|
float scaling = 1;
|
||||||
RECT r = border_width_title_bar_height(wsides, hbottom, bt, &scaling);
|
RECT r = border_width_title_bar_height(wsides, hbottom, bt, &scaling);
|
||||||
int htop = bt + hbottom;
|
int htop = bt + hbottom;
|
||||||
Fl_Surface_Device *previous = Fl_Surface_Device::surface();
|
Fl_Surface_Device *previous = Fl_Surface_Device::surface();
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ int Fl_WinAPI_Window_Driver::decorated_w()
|
|||||||
int Fl_WinAPI_Window_Driver::decorated_h()
|
int Fl_WinAPI_Window_Driver::decorated_h()
|
||||||
{
|
{
|
||||||
int bt, bx, by;
|
int bt, bx, by;
|
||||||
float scaling;
|
float scaling = 1;
|
||||||
border_width_title_bar_height(bx, by, bt, &scaling);
|
border_width_title_bar_height(bx, by, bt, &scaling);
|
||||||
return h() + bt/scaling + 2 * by;
|
return h() + bt/scaling + 2 * by;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user