summaryrefslogtreecommitdiff
path: root/src/fl_color_win32.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-07-01 20:14:08 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-07-01 20:14:08 +0000
commit526e94341d0a03bd99bbdbdeff7e446e437478c4 (patch)
tree1bb3b699e13ee2f94eb256f32712b41860906659 /src/fl_color_win32.cxx
parent2d30a9e6fa5f7a328c942fe7b0b68908339c9076 (diff)
Some patches from Ori Berger to plug some resource leaks and use a
different WIN32 message for threading under Windows. (didn't include the cleanup or release changes) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_color_win32.cxx')
-rw-r--r--src/fl_color_win32.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fl_color_win32.cxx b/src/fl_color_win32.cxx
index 1c2d328c7..93218ef05 100644
--- a/src/fl_color_win32.cxx
+++ b/src/fl_color_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_color_win32.cxx,v 1.14.2.3.2.5 2002/06/07 16:37:48 easysw Exp $"
+// "$Id: fl_color_win32.cxx,v 1.14.2.3.2.6 2002/07/01 20:14:08 easysw Exp $"
//
// WIN32 color functions for the Fast Light Tool Kit (FLTK).
//
@@ -57,7 +57,8 @@ void fl_save_pen(void) {
}
void fl_restore_pen(void) {
- SelectObject(fl_gc, savepen);
+ if (savepen) SelectObject(fl_gc, savepen);
+ savepen = 0;
}
static void clear_xmap(Fl_XMap& xmap) {
@@ -222,5 +223,5 @@ fl_select_palette(void)
#endif
//
-// End of "$Id: fl_color_win32.cxx,v 1.14.2.3.2.5 2002/06/07 16:37:48 easysw Exp $".
+// End of "$Id: fl_color_win32.cxx,v 1.14.2.3.2.6 2002/07/01 20:14:08 easysw Exp $".
//