From 90a2d680e5fdfa37135cf00c71ad14008e633d4a Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 9 Feb 2016 01:11:03 +0000 Subject: [PATCH] Fix valgrind warning (uninitialized variable) in Fl_Window. Visible only with FLTK_ABI_VERSION >= 10303, since FLTK 1.3.3. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 ++ src/Fl_Window.cxx | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGES b/CHANGES index 1f8cd1aff..5d93cf575 100644 --- a/CHANGES +++ b/CHANGES @@ -92,6 +92,8 @@ CHANGES IN FLTK 1.3.4 RELEASED: ??? ?? 2016 Bug fixes + - Fixed valgrind warning (uninitialized variable) in Fl_Window. + Visible only with FLTK_ABI_VERSION >= 10303, since FLTK 1.3.3. - Fixed Windows drag'n'drop not showing insert position if the drop target is inside the same window or process (STR #3209). - Fixed undefined reference building shared cairo library (STR #3276). diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index dcab9dd62..ffc7f9f87 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -53,12 +53,21 @@ void Fl_Window::_Fl_Window() { size_range_set = 0; minw = maxw = minh = maxh = 0; shape_data_ = NULL; + #if FLTK_ABI_VERSION >= 10301 no_fullscreen_x = 0; no_fullscreen_y = 0; no_fullscreen_w = w(); no_fullscreen_h = h(); #endif + +#if FLTK_ABI_VERSION >= 10303 + fullscreen_screen_top = -1; + fullscreen_screen_bottom = -1; + fullscreen_screen_left = -1; + fullscreen_screen_right = -1; +#endif + callback((Fl_Callback*)default_callback); }