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
This commit is contained in:
Fabien Costantini 2008-10-13 23:07:45 +00:00
parent de04c108f8
commit 8e9c1d1ab0

View File

@ -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;
}