summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-01-16 04:30:39 +0000
committerBill Spitzak <spitzak@gmail.com>2000-01-16 04:30:39 +0000
commit685d58c4979f7c6a307b191321307e32130ed959 (patch)
tree44a5dc6aca30569b4b6dbba93ff72fdec414a155 /src/Fl.cxx
parentb45efe96dc8138f2a3cba84d4b5416472f34091e (diff)
Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)
Fl_Menu_::remove(int i) will remove an entire submenu if i is the index of the menu title. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 4628ae017..aa0700e73 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,6 +1,6 @@
#include <stdio.h>
//
-// "$Id: Fl.cxx,v 1.24.2.13 1999/10/23 06:19:59 bill Exp $"
+// "$Id: Fl.cxx,v 1.24.2.14 2000/01/16 04:30:36 bill Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -573,7 +573,11 @@ void Fl_Window::hide() {
#ifdef WIN32
if (x->private_dc) ReleaseDC(x->xid,x->private_dc);
- if (x->xid == fl_window) fl_GetDC(0); // releases dc belonging to window
+ if (x->xid == fl_window && fl_gc) {
+ ReleaseDC(fl_window, fl_gc);
+ fl_window = (HWND)-1;
+ fl_gc = 0;
+ }
#else
if (x->region) XDestroyRegion(x->region);
#endif
@@ -700,5 +704,5 @@ int fl_old_shortcut(const char* s) {
}
//
-// End of "$Id: Fl.cxx,v 1.24.2.13 1999/10/23 06:19:59 bill Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.14 2000/01/16 04:30:36 bill Exp $".
//