summaryrefslogtreecommitdiff
path: root/FL/x.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-02-02 12:42:47 +0000
committerManolo Gouy <Manolo>2011-02-02 12:42:47 +0000
commit18156dfb30a291ca99422bd1bbebcb390bf9d570 (patch)
tree6687d9dc49ab32d4f44f5d3725b58704ba195831 /FL/x.H
parentbb29437427d44ee47ab1039f0bab3b66fdb40b62 (diff)
Removed global variable fl_surface that was not very useful because equivalent
to Fl_Surface_Device::surface(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/x.H')
-rw-r--r--FL/x.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/x.H b/FL/x.H
index 587822baf..7113f4af9 100644
--- a/FL/x.H
+++ b/FL/x.H
@@ -84,13 +84,13 @@ extern FL_EXPORT ulong fl_event_time;
typedef ulong Fl_Offscreen;
# define fl_create_offscreen(w,h) \
XCreatePixmap(fl_display, \
- (fl_surface->class_name() == Fl_Display_Device::class_id ? \
+ (Fl_Surface_Device::surface()->class_name() == Fl_Display_Device::class_id ? \
fl_window : fl_xid(Fl::first_window()) ) , \
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; \
- Fl_Surface_Device *_ss = fl_surface; Fl_Display_Device::display_device()->set_current(); \
+ Fl_Surface_Device *_ss = Fl_Surface_Device::surface(); Fl_Display_Device::display_device()->set_current(); \
fl_push_no_clip()
# define fl_end_offscreen() \
fl_pop_clip(); fl_window = _sw; _ss->set_current()