summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-06-04 11:44:21 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-06-04 11:44:21 +0200
commita7de80d6f7aec6d72276eb240f44a411af4b6e6d (patch)
tree913afcedc8d8deaef2fdc08dff240750da13edf1 /src/drivers
parentbdd340e1e12046500a831a414e2eda890d4d1917 (diff)
Fix for issue #447: dotted focus rectangles are a little "ragged" with some scales.
Diffstat (limited to 'src/drivers')
-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 6ee54cb41..2e9b58039 100644
--- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
@@ -114,9 +114,9 @@ void Fl_Cairo_Graphics_Driver::rectf(int x, int y, int w, int h) {
void Fl_Cairo_Graphics_Driver::rect(int x, int y, int w, int h) {
cairo_rectangle(cairo_, x, y, w-1, h-1);
- cairo_set_antialias(cairo_, CAIRO_ANTIALIAS_NONE);
+ if (linestyle_ == FL_SOLID) cairo_set_antialias(cairo_, CAIRO_ANTIALIAS_NONE);
cairo_stroke(cairo_);
- cairo_set_antialias(cairo_, CAIRO_ANTIALIAS_DEFAULT);
+ if (linestyle_ == FL_SOLID) cairo_set_antialias(cairo_, CAIRO_ANTIALIAS_DEFAULT);
check_status();
surface_needs_commit();
}