summaryrefslogtreecommitdiff
path: root/src/Fl_Double_Window.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-10-15 14:38:16 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-10-15 14:38:16 +0000
commit67d2f102d9a512373780fad217e6bb06dd2b34ec (patch)
tree8c858ba2ec46c60635d0f60259582135982c2e64 /src/Fl_Double_Window.cxx
parent255e7fb39b83523c52855809bb9a80f647fe4cff (diff)
More WIN32 fixes from Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@13 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Double_Window.cxx')
-rw-r--r--src/Fl_Double_Window.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx
index 4c1bc3812..4cc060870 100644
--- a/src/Fl_Double_Window.cxx
+++ b/src/Fl_Double_Window.cxx
@@ -72,7 +72,7 @@ void fl_copy_offscreen(int x,int y,int w,int h,HBITMAP bitmap,int srcx,int srcy)
HDC new_gc = CreateCompatibleDC(fl_gc);
SelectObject(new_gc, bitmap);
BitBlt(fl_gc, x, y, w, h, new_gc, srcx, srcy, SRCCOPY);
- ReleaseDC(bitmap, new_gc);
+ DeleteDC(new_gc);
}
extern void fl_restore_clip();
@@ -95,12 +95,13 @@ void Fl_Double_Window::flush() {
clear_damage(~0);
}
#ifdef WIN32
+ fl_clip_region(i->region); i->region = 0;
if (DAMAGE_TEST()) {
HDC _sgc = fl_gc;
fl_gc = fl_makeDC(i->other_xid);
fl_restore_clip(); // duplicate region into new gc
draw();
- ReleaseDC(i->other_xid, fl_gc);
+ DeleteDC(fl_gc);
fl_gc = _sgc;
}
#else // X: