summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-02-14 11:11:19 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-02-14 11:11:19 +0000
commitcb852cd3eb5113b92ca8d0c09ecba5859d0920dc (patch)
treed868dc9260b71b8e6e90c75d09ea2d74210fe887
parent80b9844b538d7218f55b1d0e02d493ed18e0c216 (diff)
Fl_Window::hide() didn't delete the current clipping region on
WIN32, causing a GDI resource leak in some situations (STR #723) src/Fl.cxx: - Fl_Window::hide(): move XDestroyRegion() call outside of the X11-specific code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES5
-rw-r--r--src/Fl.cxx4
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 936cc5c0c..5a822c3a3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,10 @@
CHANGES IN FLTK 1.1.7
- - Removed a few warnings when compiling on OS X
- Documentation fixes (STR #648, STR #692)
+ - Fl_Window::hide() didn't delete the current clipping
+ region on WIN32, causing a GDI resource leak in some
+ situations (STR #723)
+ - Removed a few warnings when compiling on OS X
- Fl_Menu now draws the arrow more like other toolkits
and 2.0 (STR #651)
- Fixed a VC++ compiler error in Fl_JPEG_Image.cxx (STR
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 05970a8e9..dd0ebea81 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -842,10 +842,10 @@ void Fl_Window::hide() {
Fl_X::q_release_context(ip);
if ( ip->xid == fl_window )
fl_window = 0;
-#else
- if (ip->region) XDestroyRegion(ip->region);
#endif
+ if (ip->region) XDestroyRegion(ip->region);
+
#ifdef __APPLE_QD__
if ( !parent() ) // don't destroy shared windows!
{