summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-04-11 09:50:04 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-04-29 11:18:16 +0200
commitc0bde6928ae13bfd4c22c2ed13313e9724a5cc18 (patch)
tree42831e15ac4165105a0706c8cf7d8ad5f3be921a /src/utils/stringutils.cpp
parentaf8e01bfc18451c7cdcf29dca4958de554ef0127 (diff)
downloadmana-c0bde6928ae13bfd4c22c2ed13313e9724a5cc18.tar.gz
mana-c0bde6928ae13bfd4c22c2ed13313e9724a5cc18.tar.bz2
mana-c0bde6928ae13bfd4c22c2ed13313e9724a5cc18.tar.xz
mana-c0bde6928ae13bfd4c22c2ed13313e9724a5cc18.zip
Dye: Cast to SDL_Color rather than shifting bits around
When we use SDL_PIXELFORMAT_RGBA32, which is actually the same as SDL_PIXELFORMAT_ABGR8888 on little-endian systems, we can cast the pixel data directly to SDL_Color* for easy access to the components. This may also make applying dye more efficient on big-endian systems, though I have no such system to test with. Follow-up to d8b871727c363892b14f2eadfad8f6058ec6ab72.
Diffstat (limited to 'src/utils/stringutils.cpp')
0 files changed, 0 insertions, 0 deletions