summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-04-04 22:59:08 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-04-04 22:59:08 +0200
commit3ac16f1dc4d0165724eb2a10742e09866041c9f2 (patch)
treef0d8b63e2e53590e06b38c782812e99a5ebae9d4 /FL
parent06e495f26256a6d987f6d76cb291ba62fee85857 (diff)
Fix compiler warning, part 1 of #946
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H4
1 files changed, 2 insertions, 2 deletions
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);
}