diff options
author | Ira Rice <irarice@gmail.com> | 2008-12-21 00:39:45 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-12-21 00:39:45 -0700 |
commit | 0289c04b5454b42676f3b6beb68571e71617500c (patch) | |
tree | 52b1d584c1ff73fd527eabac20421194b69bf392 /src/main.cpp | |
parent | 3f000858edfbca044a7d8168bd879ef80285e522 (diff) | |
download | mana-0289c04b5454b42676f3b6beb68571e71617500c.tar.gz mana-0289c04b5454b42676f3b6beb68571e71617500c.tar.bz2 mana-0289c04b5454b42676f3b6beb68571e71617500c.tar.xz mana-0289c04b5454b42676f3b6beb68571e71617500c.zip |
Fixed wallpaper selection to be handled correctly.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index b6d2b74f..378e913e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -760,11 +760,11 @@ int main(int argc, char *argv[]) std::string wallpaperName; wallpaperName = "graphics/images/login_wallpaper.png"; - if (screenWidth == 1024) + if (screenWidth >= 1024 && screenWidth < 1280) wallpaperName = "graphics/images/login_wallpaper_1024x768.png"; - else if (screenWidth == 1280) + else if (screenWidth >= 1280 && screenWidth < 1440) wallpaperName = "graphics/images/login_wallpaper_1280x960.png"; - else if (screenWidth == 1440) + else if (screenWidth >= 1440 && screenWidth < 1600) wallpaperName = "graphics/images/login_wallpaper_1440x1080.png"; else if (screenWidth >= 1600) wallpaperName = "graphics/images/login_wallpaper_1600x1200.png"; |