summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
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;
}