summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-10-13 23:07:45 +0000
committerFabien Costantini <fabien@onepost.net>2008-10-13 23:07:45 +0000
commit8e9c1d1ab030dc7beed522f368c467dd94e1f8bb (patch)
treef36a5106afeb9fb7cf19cd4a32bc051e53c97eb6 /fluid
parentde04c108f886dfdf8e4acffc0efd587ba5b77272 (diff)
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
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Window_Type.cxx5
1 files 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;
}