summaryrefslogtreecommitdiff
path: root/src/imageparticle.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-07 20:33:38 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-07 20:33:38 +0100
commit98e0c2435bd69d6dd78fb0f84389a81b56278958 (patch)
treeb369d0dce1422ef12ebc09e8e68b06191c0e17e7 /src/imageparticle.cpp
parentc74680473e702bacc009897a258387445d6f3eb5 (diff)
downloadmana-98e0c2435bd69d6dd78fb0f84389a81b56278958.tar.gz
mana-98e0c2435bd69d6dd78fb0f84389a81b56278958.tar.bz2
mana-98e0c2435bd69d6dd78fb0f84389a81b56278958.tar.xz
mana-98e0c2435bd69d6dd78fb0f84389a81b56278958.zip
Fixed ambient layers "keepratio" option
I had broken this in 264be2108c51837fa92085f6c839e66aebbcfc9e by no longer reading out the property. Made some further simplifications and two more fixes: * When the original image's size was not 800x600, it wouldn't get scaled as expected due to the integer division being performed before the multiplication. * I had changed the default resolution to 1280x720, while mKeepRatio expects to scale the original image as if it was displayed on an 800x600 screen. So now it's hardcoded on 800x600 rather than using the defaultScreenWidth/Height variables. * Removed the confusing x/y parameters from AmbientLayer::draw, which were actually set to the graphics width/height. * Changed SDLGraphics::drawRescaledImagePattern to not repeatedly set the source origin.
Diffstat (limited to 'src/imageparticle.cpp')
0 files changed, 0 insertions, 0 deletions