Author: matt
Date: 2007-12-20 08:22:53 -0800 (Thu, 20 Dec 2007)
New Revision: 6005
Log:
Fixed exposure event on zero size windows (STR #1824)
Modified:
branches/branch-1.1/CHANGES
branches/branch-1.1/src/Fl_win32.cxx
Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2007-12-18 10:02:54 UTC (rev 6004)
+++ branches/branch-1.1/CHANGES 2007-12-20 16:22:53 UTC (rev 6005)
@@ -5,6 +5,7 @@
STR #1639, STR #1645, STR #1644, STR #1792, STR #1793,
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
STR #1796)
+ - Fixed exposure event on zero size windows (STR #1824)
- Fixed overlay offset for OS X Quartz (STR #1729)
- gl_font() support for Xft+X11 (STR #1809)
- Fl_Gl_Window::mode() needed to hide and show the window
Modified: branches/branch-1.1/src/Fl_win32.cxx
===================================================================
--- branches/branch-1.1/src/Fl_win32.cxx 2007-12-18 10:02:54 UTC (rev
6004)
+++ branches/branch-1.1/src/Fl_win32.cxx 2007-12-20 16:22:53 UTC (rev
6005)
@@ -1118,7 +1118,13 @@
}
if (is_a_resize) {
Fl_Group::resize(X,Y,W,H);
- if (visible_r()) {redraw(); i->wait_for_expose = 1;}
+ if (visible_r()) {
+ redraw();
+ // only wait for exposure if this window has a size - a window
+ // with no width or height will never get an exposure event
+ if (W>0 && H>0)
+ i->wait_for_expose = 1;
+ }
} else {
x(X); y(Y);
flags |= SWP_NOSIZE;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit