FLTK logo

[master] a7de80d - Fix for issue #447: dotted focus rectangles are a little "ragged" with some scales.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] a7de80d - Fix for issue #447: dotted focus rectangles are a little "ragged" with some scales. "ManoloFLTK" Jun 04, 2022  
 
commit a7de80d6f7aec6d72276eb240f44a411af4b6e6d
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Jun 4 11:44:21 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Jun 4 11:44:21 2022 +0200

    Fix for issue #447: dotted focus rectangles are a little "ragged" with some scales.

 src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
index 6ee54cb..2e9b580 100644
--- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ 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();
 }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.