FLTK logo

[master] 3ac16f1 - Fix compiler warning, part 1 of #946

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 3ac16f1 - Fix compiler warning, part 1 of #946 "Albrecht Schlosser" 14:02 Apr 04  
 
commit 3ac16f1dc4d0165724eb2a10742e09866041c9f2
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Thu Apr 4 22:59:08 2024 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Thu Apr 4 22:59:08 2024 +0200

    Fix compiler warning, part 1 of #946

 FL/Fl.H | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git FL/Fl.H FL/Fl.H
index 702c580..7860771 100644
--- FL/Fl.H
+++ 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);
   }
 
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.