Fix Fl_Cairo_Graphics_Driver::rect and Fl_Cairo_Graphics_Driver::rectf

This commit is contained in:
ManoloFLTK 2021-04-14 13:59:16 +02:00
parent 87679110f9
commit 78aa959ab9

View File

@ -67,13 +67,13 @@ Fl_Cairo_Graphics_Driver::~Fl_Cairo_Graphics_Driver() {}
void Fl_Cairo_Graphics_Driver::rectf(int x, int y, int w, int h) {
cairo_rectangle(cairo_, x, y, w, h);
cairo_rectangle(cairo_, x-0.5, y-0.5, w, h);
cairo_fill(cairo_);
check_status();
}
void Fl_Cairo_Graphics_Driver::rect(int x, int y, int w, int h) {
cairo_rectangle(cairo_, x, y, w, h);
cairo_rectangle(cairo_, x, y, w-1, h-1);
cairo_stroke(cairo_);
check_status();
}