mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 03:18:17 +00:00
SDL: Fix error when USE_SCALERS is undefined
This commit is contained in:
parent
f172718b79
commit
88363d5d36
@ -312,7 +312,7 @@ const OSystem::GraphicsMode *SurfaceSdlGraphicsManager::getSupportedGraphicsMode
|
||||
}
|
||||
|
||||
int SurfaceSdlGraphicsManager::getDefaultGraphicsMode() const {
|
||||
for (uint i = 0; i < s_supportedGraphicsModes->size(); ++i) {
|
||||
for (uint i = 0; i < s_supportedGraphicsModes->size() - 1; ++i) {
|
||||
// if normal2x exists, it is the default
|
||||
if (strcmp((*s_supportedGraphicsModes)[i].name, "normal2x") == 0)
|
||||
return (*s_supportedGraphicsModes)[i].id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user