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.
This commit is contained in:
Albrecht Schlosser 2023-03-12 16:20:54 +01:00
parent 6e407cb169
commit af4789077f

View File

@ -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*)) {