FLTK logo

[master] ffc2cae - Avoid thin gray line in round box in hires

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] ffc2cae - Avoid thin gray line in round box in hires "Matthias Melcher" Nov 25, 2022  
 
commit ffc2caea076e526b6ef1b13b82c2e2d471b03fa1
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Fri Nov 25 12:53:46 2022 +0100
Commit:     Matthias Melcher <github@matthiasm.com>
CommitDate: Fri Nov 25 12:53:54 2022 +0100

    Avoid thin gray line in round box in hires

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

diff --git src/fl_round_box.cxx src/fl_round_box.cxx
index 8cbe79f..c0fdb37 100644
--- src/fl_round_box.cxx
+++ src/fl_round_box.cxx
@@ -55,9 +55,9 @@ static void draw(int which, int x,int y,int w,int h, int inset, Fl_Color color)
   }
   if (which == FILL) {
     if (w < h)
-      fl_rectf(x, y+d/2, w, h-(d&-2));
+      fl_rectf(x, y+d/2, w, h-(d&-2)+1);
     else if (w > h)
-      fl_rectf(x+d/2, y, w-(d&-2), h);
+      fl_rectf(x+d/2, y, w-(d&-2)+1, h);
   } else {
     if (w < h) {
       if (which != UPPER_LEFT) fl_yxline(x+w-1, y+d/2-1, y+h-d/2+1);
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'.