diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-15 18:02:48 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-15 18:02:48 +0200 |
| commit | 957fa1fe3751a10478d4ce4c5971d9d9dd17966d (patch) | |
| tree | 97f44c312f9bdf7b44ad93d6035b02b6b9aa4bb4 /src/Fl_Text_Display.cxx | |
| parent | a5f28b39842af9ceb20c85a2d75870eb556a2cc3 (diff) | |
Improve method to draw boxes of type FL_BORDER_BOX and FL_SHADOW_BOX (#1089)
These types of boxes frame a background with a rectangular frame of another color.
The previous procedure to draw them was not robust to GUI rescaling creating cases
where space between the border and the background was not drawn.
The new drawing procedure for these boxes first paints the whole area (frame included)
with the background color and next draws the frame over the just painted rectangle.
No uncolored space is possible.
It was also necessary to very slightly modify Fl_Scalable_Graphics_Driver::rect()
used by the Windows and X11 (no Cairo) backends to make sure fl_rect(x,y,w,h)
exactly frames fl_rectf(x,y,w,h) without drawing outside the filled area.
Diffstat (limited to 'src/Fl_Text_Display.cxx')
0 files changed, 0 insertions, 0 deletions
