diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-12 15:49:00 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-03-12 16:01:58 +0100 |
| commit | 6e407cb169a3820e3d86e35230bf9b6fea2aef47 (patch) | |
| tree | 97b18904a48fbf65b27534565e192f4ba155a61b /src/fl_cursor.cxx | |
| parent | 73a2ca5261ee7b0d0e33fc1e49611520d7b0e0cb (diff) | |
Fix Cairo drawing in test/cairo_test demo for Windows (#694)
On the Windows platform Cairo drawings must be flushed explicitly.
This is done in Fl_Cairo_Window after calling the draw callback but
it was neither done nor documented in test/cairo_test.cxx when using
another type of Window with its overloaded draw() method, i.e. when
FLTK was configured with --enable-cairoext or CMake OPTION_CAIROEXT.
Note: user code must either explicitly flush the Cairo drawings as
done here or destroy the Cairo context which is not done in this demo
because the Cairo context should be kept alive.
Diffstat (limited to 'src/fl_cursor.cxx')
0 files changed, 0 insertions, 0 deletions
