From 0289c04b5454b42676f3b6beb68571e71617500c Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 21 Dec 2008 00:39:45 -0700 Subject: Fixed wallpaper selection to be handled correctly. Signed-off-by: Ira Rice --- src/main.cpp | 6 +++--- 1 file 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"; -- cgit v1.2.3-70-g09d2