Minor simplification in Fl_X11_Window_Driver::flush_double(int)

This commit is contained in:
ManoloFLTK
2023-10-30 18:27:12 +01:00
parent c0e4410776
commit 99826a5fba
+1 -3
View File
@@ -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);
}