Fix drawing points in complex shape mode with Cairo (#792)

This commit is contained in:
ManoloFLTK 2023-10-17 21:14:34 +02:00
parent c62501c93a
commit 9f141aefc6
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}