diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-12 16:20:54 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-12 16:20:54 +0100 |
| commit | af4789077f44d0391b80432a8e0fcfbf4865a924 (patch) | |
| tree | 6f5c5e56a3a71fd78904fc47130671caa16b6f3b | |
| parent | 6e407cb169a3820e3d86e35230bf9b6fea2aef47 (diff) | |
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.
| -rw-r--r-- | test/cairo_test.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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*)) { |
