summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-04-18 20:47:32 +0000
committerManolo Gouy <Manolo>2011-04-18 20:47:32 +0000
commit1ad8cf320da6f8ce917c4f0f962dc9c9fef019da (patch)
tree58a977ff37fa9a6848abc3251c4c52ca6c56c7f5 /src/Fl_win32.cxx
parent451b91ea4635f03cf6a07a999903215af1b6b683 (diff)
Fixed a problem in the WIN32 version of Fl_Paged_Device::print_window_part() and
Fl_Paged_Device::print_window() where the window didn't redraw well in some cases after printing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
-rw-r--r--src/Fl_win32.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 734e6a60a..1fae9cf52 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1997,6 +1997,8 @@ void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset)
delete[] bottom_image;
// print the window inner part
this->print_widget(win, x_offset + bx, y_offset + bt + by);
+ fl_gc = GetDC(fl_xid(win));
+ ReleaseDC(fl_xid(win), fl_gc);
}
#ifdef USE_PRINT_BUTTON