diff options
| author | Manolo Gouy <Manolo> | 2016-04-18 17:02:44 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-18 17:02:44 +0000 |
| commit | c0f14ca2f00b1ea026298b0efa91c8b6afb13244 (patch) | |
| tree | 93fefd3de4cc8c73d56e18f2052ded34566dc1c9 /src/drivers/Cocoa | |
| parent | e790ac96536503c2f89a894f6bda1d5a21fab05d (diff) | |
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
Diffstat (limited to 'src/drivers/Cocoa')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx index 47fb70242..68389bae9 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx @@ -73,14 +73,14 @@ void Fl_Cocoa_Window_Driver::flush_overlay() pWindow->make_current(); // make sure fl_gc is non-zero Fl_X *myi = Fl_X::i(pWindow); if (!myi) return; // window not yet created - if (!myi->other_xid) { - myi->other_xid = fl_create_offscreen(oWindow->w(), oWindow->h()); + if (!other_xid) { + other_xid = fl_create_offscreen(oWindow->w(), oWindow->h()); oWindow->clear_damage(FL_DAMAGE_ALL); } if (oWindow->damage() & ~FL_DAMAGE_EXPOSE) { fl_clip_region(myi->region); myi->region = 0; - if ( myi->other_xid ) { - fl_begin_offscreen( myi->other_xid ); + if ( other_xid ) { + fl_begin_offscreen( other_xid ); fl_clip_region( 0 ); draw(); fl_end_offscreen(); @@ -92,7 +92,7 @@ void Fl_Cocoa_Window_Driver::flush_overlay() // on Irix (at least) it is faster to reduce the area copied to // the current clip region: int X,Y,W,H; fl_clip_box(0,0,oWindow->w(),oWindow->h(),X,Y,W,H); - if (myi->other_xid) fl_copy_offscreen(X, Y, W, H, myi->other_xid, X, Y); + if (other_xid) fl_copy_offscreen(X, Y, W, H, other_xid, X, Y); if (overlay() == oWindow) oWindow->draw_overlay(); } |
