From af4789077f44d0391b80432a8e0fcfbf4865a924 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 12 Mar 2023 16:20:54 +0100 Subject: Simplify the previous Cairo drawing fix (#694) The Cairo context 'cc' should be used directly rather than calling 'Fl::cairo_cc()' again. Sorry for the noise. --- test/cairo_test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cairo_test.cxx b/test/cairo_test.cxx index 86ca7299b..f6326f5cb 100644 --- a/test/cairo_test.cxx +++ b/test/cairo_test.cxx @@ -176,7 +176,7 @@ public: // FIXME: this should be simplified with an FLTK API, for instance: // Fl::cairo_flush(cc); - cairo_surface_t *s = cairo_get_target(Fl::cairo_cc()); + cairo_surface_t *s = cairo_get_target(cc); cairo_surface_flush(s); } void set_draw_cb( void (*cb)(cairo_using_window*, cairo_t*)) { -- cgit v1.2.3