ManaPlus
|
#include <wallpaper.h>
Static Public Member Functions | |
static void | loadWallpapers () |
static std::string | getWallpaper (const int width, const int height) |
Handles organizing and choosing of wallpapers.
Definition at line 34 of file wallpaper.h.
|
static |
Returns the largest wallpaper for the given resolution, or the default wallpaper if none are found.
width | the desired width |
height | the desired height |
Definition at line 137 of file wallpaper.cpp.
References CAST_S32, CAST_U32, WallpaperData::filename, FOR_EACH, haveBackup, WallpaperData::height, pathJoin(), wallpaperData, wallpaperFile, wallpaperPath, and WallpaperData::width.
Referenced by PRAGMA45(), Desktop::setBestFittingWallpaper(), TestLauncher::testFps2(), TestLauncher::testFps3(), and TestLauncher::testRescale().
|
static |
Reads the folder that contains wallpapers and organizes the wallpapers found by area, width, and height.
Definition at line 88 of file wallpaper.cpp.
References VirtFs::enumerateFiles(), WallpaperData::filename, FOR_EACH, VirtFs::freeList(), haveBackup, WallpaperData::height, initDefaultWallpaperPaths(), VirtFs::List::names, wallpaperCompare(), wallpaperData, wallpaperFile, wallpaperPath, and WallpaperData::width.
Referenced by Desktop::Desktop(), PRAGMA45(), Desktop::reloadWallpaper(), TestLauncher::testFps2(), TestLauncher::testFps3(), and TestLauncher::testRescale().