diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-29 20:34:14 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-31 12:49:57 +0200 |
commit | 80f76c3aae438f7b9a7c1359c3f37aac460f934b (patch) | |
tree | c5786337049f701db3a22c432d773eaac4525012 /src/utils/stringutils.cpp | |
parent | 2739d3cface75a5477918ce03bd2f85b3244fe1a (diff) | |
download | mana-80f76c3aae438f7b9a7c1359c3f37aac460f934b.tar.gz mana-80f76c3aae438f7b9a7c1359c3f37aac460f934b.tar.bz2 mana-80f76c3aae438f7b9a7c1359c3f37aac460f934b.tar.xz mana-80f76c3aae438f7b9a7c1359c3f37aac460f934b.zip |
GUI: Apply clipping only where necessary
Clipping has been disabled globally by taking it out of
Graphics::pushClipArea. Now its name is a little confusing, but it can't
just be changed since it is part of Guichan.
Widgets that do need to clip their children use the new
Graphics::pushClipRect, which pushes a clipping rectangle without
affecting the local coordinates. These are:
* ScrollArea
* TextField
* TabbedArea (scrolling tabs)
* MiniMap
While it might count as a small optimization, I'm actually disabling
clipping because it is not always desired. For example it gets in the
way of rendering the complete ResizeGrip in the Jewelry theme because
that's a child widget.
Diffstat (limited to 'src/utils/stringutils.cpp')
0 files changed, 0 insertions, 0 deletions