From c0f14ca2f00b1ea026298b0efa91c8b6afb13244 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 18 Apr 2016 17:02:44 +0000 Subject: Move other_xid member variable from class Fl_X to class F_Window_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/X11/Fl_X11_Window_Driver.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/drivers/X11/Fl_X11_Window_Driver.cxx') diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index b468cd60d..bb952b7bd 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -80,8 +80,8 @@ void Fl_X11_Window_Driver::flush_double_dbe(int erase_overlay) { pWindow->make_current(); // make sure fl_gc is non-zero Fl_X *i = Fl_X::i(pWindow); - if (!i->other_xid) { - i->other_xid = XdbeAllocateBackBufferName(fl_display, fl_xid(pWindow), XdbeCopied); + if (!other_xid) { + other_xid = XdbeAllocateBackBufferName(fl_display, fl_xid(pWindow), XdbeCopied); backbuffer_bad = 1; pWindow->clear_damage(FL_DAMAGE_ALL); } @@ -94,7 +94,7 @@ void Fl_X11_Window_Driver::flush_double_dbe(int erase_overlay) // Redraw as needed... if (pWindow->damage()) { fl_clip_region(i->region); i->region = 0; - fl_window = i->other_xid; + fl_window = other_xid; draw(); fl_window = i->xid; } @@ -111,9 +111,8 @@ void Fl_X11_Window_Driver::flush_double_dbe(int erase_overlay) void Fl_X11_Window_Driver::destroy_double_buffer() { #if USE_XDBE if (can_xdbe()) { - Fl_X *i = Fl_X::i(pWindow); - XdbeDeallocateBackBufferName(fl_display, i->other_xid); - i->other_xid = 0; + XdbeDeallocateBackBufferName(fl_display, other_xid); + other_xid = 0; } else #endif // USE_XDBE @@ -218,19 +217,19 @@ void Fl_X11_Window_Driver::flush_double(int erase_overlay) { pWindow->make_current(); // make sure fl_gc is non-zero Fl_X *i = Fl_X::i(pWindow); - if (!i->other_xid) { - i->other_xid = fl_create_offscreen(w(), h()); + if (!other_xid) { + other_xid = fl_create_offscreen(w(), h()); pWindow->clear_damage(FL_DAMAGE_ALL); } if (pWindow->damage() & ~FL_DAMAGE_EXPOSE) { fl_clip_region(i->region); i->region = 0; - fl_window = i->other_xid; + fl_window = other_xid; draw(); fl_window = i->xid; } if (erase_overlay) fl_clip_region(0); int X,Y,W,H; fl_clip_box(0,0,w(),h(),X,Y,W,H); - if (i->other_xid) fl_copy_offscreen(X, Y, W, H, i->other_xid, X, Y); + if (other_xid) fl_copy_offscreen(X, Y, W, H, other_xid, X, Y); } -- cgit v1.2.3