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:
parent
6e407cb169
commit
af4789077f
@ -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*)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user