Fix valgrind warning (uninitialized variable) in Fl_Window.
Regression only with FLTK_ABI_VERSION >= 10303 (since FLTK 1.3.3). Was fixed in FLTK 1.3.4. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
b69fbf21bf
commit
99a6faa513
@ -3,7 +3,7 @@
|
||||
//
|
||||
// Window header file for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2012 by Bill Spitzak and others.
|
||||
// Copyright 1998-2016 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software. Distribution and use rights are outlined in
|
||||
// the file "COPYING" which should have been included with this file. If this
|
||||
@ -57,9 +57,7 @@ class Fl_RGB_Image;
|
||||
class FL_EXPORT Fl_Window : public Fl_Group {
|
||||
|
||||
static char *default_xclass_;
|
||||
// Note: we must use separate statements for each of the following 8 variables,
|
||||
// with the static attribute, otherwise MS VC++ 2008/2010 complains :-(
|
||||
// AlbrechtS 04/2012
|
||||
|
||||
int no_fullscreen_x;
|
||||
int no_fullscreen_y;
|
||||
int no_fullscreen_w;
|
||||
|
@ -3,7 +3,7 @@
|
||||
//
|
||||
// Window widget class for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
// Copyright 1998-2010 by Bill Spitzak and others.
|
||||
// Copyright 1998-2016 by Bill Spitzak and others.
|
||||
//
|
||||
// This library is free software. Distribution and use rights are outlined in
|
||||
// the file "COPYING" which should have been included with this file. If this
|
||||
@ -57,6 +57,10 @@ void Fl_Window::_Fl_Window() {
|
||||
no_fullscreen_y = 0;
|
||||
no_fullscreen_w = w();
|
||||
no_fullscreen_h = h();
|
||||
fullscreen_screen_top = -1;
|
||||
fullscreen_screen_bottom = -1;
|
||||
fullscreen_screen_left = -1;
|
||||
fullscreen_screen_right = -1;
|
||||
callback((Fl_Callback*)default_callback);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user