diff --git a/FL/Fl.H b/FL/Fl.H index 702c5802c..7860771ba 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -1,7 +1,7 @@ // // Main header file for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2023 by Bill Spitzak and others. +// Copyright 1998-2024 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -1493,7 +1493,7 @@ public: */ static void cairo_flush(cairo_t *c) { // flush Cairo drawings: necessary at least for Windows - cairo_surface_t *s = cairo_get_target(Fl::cairo_cc()); + cairo_surface_t *s = cairo_get_target(c); cairo_surface_flush(s); }