FLTK logo

Re: [fltk.general] Focus boxes are broken on my machine

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.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Focus boxes are broken on my machine Greg Ercolano Sep 10, 2021  
 

On 9/10/21 10:04 AM, Albrecht Schlosser wrote:

There's a possible workaround if you set the line width to 1 rather than 0 (the default). The drawback is that setting the width to 1 slows things down and that's why it's not (yet?) done.

Maybe we should set the line width to 1 explicitly for the focus box which shouldn't harm much (in terms of drawing speed) but there are other visible effects (missing pixels in rectangles) as well.

    Yes, that's what I remember too (setting linewidth to 1).

    IIRC the focus box is "special" in that it uses the dotted line pattern for lines,
    and for whatever reason that combined with 0 width line causes a problem
    with the pattern generation.

    The zero width also creates holes in the corners of boxes. Probably the issue
    is related somehow, as it's probably miscalculating the ends of line segments
    causing dropouts and unintended connections. The apparent randomness in the
    output makes me think it's some kind of uninitialized memory in the driver code.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/f9f40728-226f-2e90-5c53-ce8da54c5ee4%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]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'.