summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
index b9d573a19..881d2cbaf 100644
--- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
@@ -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();
}