diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-08 22:54:15 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-12 19:06:28 +0100 |
commit | bce513e08316ec01bf3384062740b4d8198cdb3e (patch) | |
tree | 7cd877925d18907765d1194792a1c4ff46436837 /src/net/inventoryhandler.h | |
parent | d3267f81ac036a51bbf3ee83574df1cbca0eaa85 (diff) | |
download | mana-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/inventoryhandler.h')
0 files changed, 0 insertions, 0 deletions