summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-08 22:54:15 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-02-12 19:06:28 +0100
commitbce513e08316ec01bf3384062740b4d8198cdb3e (patch)
tree7cd877925d18907765d1194792a1c4ff46436837 /src/net/tmwa/gamehandler.h
parentd3267f81ac036a51bbf3ee83574df1cbca0eaa85 (diff)
downloadmana-bce513e08316ec01bf3384062740b4d8198cdb3e.tar.gz
mana-bce513e08316ec01bf3384062740b4d8198cdb3e.tar.bz2
mana-bce513e08316ec01bf3384062740b4d8198cdb3e.tar.xz
mana-bce513e08316ec01bf3384062740b4d8198cdb3e.zip
Improved the wallpaper choosing algorithm
Now it searches for the smallest wallpaper that is at least as large as the screen, since downscaling is preferred to upscaling. When not found, it will go with the largest available wallpaper. Previously, the algorithm preferred upscaling, but didn't bother searching for the largest available one, but would pick a random image. It would also revert to the default Mana wallpaper when no image was small enough to fit on the screen. Reviewed-by: Erik Schilling Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/net/tmwa/gamehandler.h')
0 files changed, 0 insertions, 0 deletions