From 99826a5fba6a0f6767262d20b3c8d23b5123f415 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:27:12 +0100 Subject: Minor simplification in Fl_X11_Window_Driver::flush_double(int) --- src/drivers/X11/Fl_X11_Window_Driver.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index c30f36e49..89f4a2ecc 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -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); } -- cgit v1.2.3