From 67d2f102d9a512373780fad217e6bb06dd2b34ec Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 15 Oct 1998 14:38:16 +0000 Subject: More WIN32 fixes from Gustavo Hime. git-svn-id: file:///fltk/svn/fltk/trunk@13 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Double_Window.cxx') 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: -- cgit v1.2.3