summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-19 13:47:08 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-19 13:48:18 +0200
commit56f0671b3201e501745c11556b9c96081194777d (patch)
tree9fa914fcade4ed217c183c9efd07ae26d11edb62 /src/drivers
parent49a161e68d0a45e9b32e9d242205a97d3178f818 (diff)
Fix border case of use of fl_end_loop under Windows with USE_GDIPLUS=1
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx
index 441bddd70..e469bb11b 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx
@@ -141,7 +141,7 @@ void Fl_GDIplus_Graphics_Driver::end_line() {
void Fl_GDIplus_Graphics_Driver::end_loop() {
if (!active) return Fl_GDI_Graphics_Driver::end_loop();
fixloop();
- if (n>2) {
+ if (n >= 2) {
Gdiplus::GraphicsPath path;
Gdiplus::Point *gdi2_p = new Gdiplus::Point[n];
for (int i = 0; i < n; i++) {