diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-30 18:27:12 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-30 18:27:12 +0100 |
| commit | 99826a5fba6a0f6767262d20b3c8d23b5123f415 (patch) | |
| tree | 946a2910d131059142d4e4b6ace0763cbd424935 /src/drivers | |
| parent | c0e44107767ea366053ef6391d8574a5f6ab6a00 (diff) | |
Minor simplification in Fl_X11_Window_Driver::flush_double(int)
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Window_Driver.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |
