summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-05-23 16:00:25 +0000
committerManolo Gouy <Manolo>2014-05-23 16:00:25 +0000
commit85af2efe09d6ac88bfc18f8a991ea59af9a5b24b (patch)
tree7bf82410dbd8ae00bc316625d01626219b995f59
parent1b1f02a3659eebdcbc56100cea1460be726603c8 (diff)
Simpler definition of the fl_create_offscreen() macro on the X11 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/x.H6
1 files changed, 1 insertions, 5 deletions
diff --git a/FL/x.H b/FL/x.H
index 110f92d38..4381eb350 100644
--- a/FL/x.H
+++ b/FL/x.H
@@ -84,11 +84,7 @@ extern FL_EXPORT ulong fl_event_time;
// off-screen pixmaps: create, destroy, draw into, copy to window:
typedef ulong Fl_Offscreen;
-# define fl_create_offscreen(w,h) \
- XCreatePixmap(fl_display, \
- (Fl_Surface_Device::surface() == Fl_Display_Device::display_device() ? \
- fl_window : fl_xid(Fl::first_window()) ) , \
- w, h, fl_visual->depth)
+# define fl_create_offscreen(w,h) XCreatePixmap(fl_display, RootWindow(fl_display, fl_screen), w, h, fl_visual->depth)
// begin/end are macros that save the old state in local variables:
# define fl_begin_offscreen(pixmap) \
Window _sw=fl_window; fl_window=pixmap; \