From 9f141aefc60a1eb7f0a55700aa988947d744dfc5 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 17 Oct 2023 21:14:34 +0200 Subject: [PATCH] Fix drawing points in complex shape mode with Cairo (#792) --- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx index 4a2e09159..37473f48c 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx @@ -454,6 +454,8 @@ void Fl_Cairo_Graphics_Driver::begin_polygon() { void Fl_Cairo_Graphics_Driver::vertex(double x, double y) { if (what==POINTS){ cairo_move_to(cairo_, x, y); + cairo_rectangle(cairo_, x-0.5, y-0.5, 1, 1); + cairo_fill(cairo_); gap_=1; return; }