From 8e9c1d1ab030dc7beed522f368c467dd94e1f8bb Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 13 Oct 2008 23:07:45 +0000 Subject: fixed fluid template would not save correctly under quartz. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Window_Type.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 503a45c87..42dbf8b00 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -306,7 +306,8 @@ extern Fl_Window *main_window; // Read an image of the overlay window uchar *Overlay_Window::read_image(int &ww, int &hh) { // Create an off-screen buffer for the window... - main_window->make_current(); + //main_window->make_current(); + make_current(); ww = w(); hh = h(); @@ -329,7 +330,7 @@ uchar *Overlay_Window::read_image(int &ww, int &hh) { // Cleanup and return... fl_delete_offscreen(offscreen); - + main_window->make_current(); return pixels; } -- cgit v1.2.3