|
|
On Wednesday, February 24, 2021 at 3:00:18 PM UTC+1 remy.o...@gmail.com wrote:
Hi Manolo,
Thank you, but this shows the problem I was referring to. The green button's top and right borders are 4px thick, while its left and bottom borders are 2px; the blue and orange buttons have uneven borders inconsistent with orange; and so on.
Ideally for me, at 200% DPI a boxtype function could disable having its own draw calls scaled, and instead multiply its own X/Y/W/H arguments by screen_scale(), so it would be like drawing a box twice as large and with a doubled offset from (0,0). (Then it would decide whether to, for instance, draw some of its elements as thicker or not.)
When the scaling factor value is fractional, horizontal and vertical lines have varying width, precisely to make sure adjacent boxes remain adjacent. But at 200% (and 300%) all lines have the same width as in the attached png. I may add a new line style that would prevent lines from getting variable width with fractional scale factors, then your custom boxes would just have to use that line style. But it's not possible, I believe, to simultaneously have
fixed-width lines, adjacent boxes or lines, and fractional scale factors.
--
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/e26a2a19-1f97-43c4-8585-527511c756dcn%40googlegroups.com.
Attachment:
unittests@200%.png
Description: PNG image
[ Direct Link to Message ] | |
|
| |