mirror of
https://github.com/fltk/fltk.git
synced 2026-05-24 00:06:20 +08:00
Minor simplification in Fl_X11_Window_Driver::flush_double(int)
This commit is contained in:
@@ -161,9 +161,7 @@ void Fl_X11_Window_Driver::flush_double(int erase_overlay)
|
||||
if (!other_xid) {
|
||||
other_xid = new Fl_Image_Surface(w(), h(), 1);
|
||||
#if FLTK_USE_CAIRO
|
||||
Fl_Surface_Device::push_current(other_xid);
|
||||
cairo_ = ((Fl_Cairo_Graphics_Driver*)fl_graphics_driver)->cr();
|
||||
Fl_Surface_Device::pop_current();
|
||||
cairo_ = ((Fl_Cairo_Graphics_Driver*)other_xid->driver())->cr();
|
||||
#endif
|
||||
pWindow->clear_damage(FL_DAMAGE_ALL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user