summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-04-09 14:24:47 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-04-25 14:05:30 +0000
commitc363961327621ceeb47ead653bb20c5da4e9a726 (patch)
tree3245318c3f629a1e3cae4ba9f4b54332aa660143 /src/utils/stringutils.cpp
parentf48725cbf4e5ed620a57b1c945a109f0c225b1cd (diff)
downloadmana-c363961327621ceeb47ead653bb20c5da4e9a726.tar.gz
mana-c363961327621ceeb47ead653bb20c5da4e9a726.tar.bz2
mana-c363961327621ceeb47ead653bb20c5da4e9a726.tar.xz
mana-c363961327621ceeb47ead653bb20c5da4e9a726.zip
Simplified ImageRect handling
We don't need to keep an array of SubImage instances, but can just remember the top, left, right and bottom margins and use those when rendering the scaled ImageRect. Graphics::drawRescaledImagePattern had to be extended to allow specifying the source rectangle.
Diffstat (limited to 'src/utils/stringutils.cpp')
0 files changed, 0 insertions, 0 deletions