SDL: Remove the old graphics mode enum

This commit is contained in:
Cameron Cawley 2020-07-02 16:51:40 +01:00 committed by Filippos Karapetis
parent 621c4c2e9e
commit 035f5798c4
2 changed files with 4 additions and 26 deletions

View File

@ -152,23 +152,13 @@ SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSou
_enableFocusRectDebugCode = ConfMan.getBool("use_sdl_debug_focusrect");
#endif
#if !defined(__SYMBIAN32__)
#if defined(USE_SCALERS)
_videoMode.mode = GFX_DOUBLESIZE;
_videoMode.scaleFactor = 2;
#else // for small screen platforms
_videoMode.mode = GFX_NORMAL;
_videoMode.scaleFactor = 1;
#endif
#if defined(USE_ASPECT)
#if !defined(__SYMBIAN32__) && defined(USE_ASPECT)
_videoMode.aspectRatioCorrection = ConfMan.getBool("aspect_ratio");
_videoMode.desiredAspectRatio = getDesiredAspectRatio();
#else // for small screen platforms
_videoMode.aspectRatioCorrection = false;
#endif
#endif
_normalPlugin = &ScalerMan.findScalerPlugin("normal")->get<ScalerPluginObject>();
assert(_normalPlugin);
_scalerPlugin = NULL;
@ -183,6 +173,9 @@ SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSou
if (!s_supportedGraphicsModes)
initGraphicsModes();
_videoMode.mode = s_defaultGraphicsMode;
_videoMode.scaleFactor = getGraphicsModeScale(_videoMode.mode);
}
SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager() {

View File

@ -40,21 +40,6 @@
#define USE_SDL_DEBUG_FOCUSRECT
#endif
enum {
GFX_NORMAL = 0,
GFX_DOUBLESIZE = 1,
GFX_TRIPLESIZE = 2,
GFX_2XSAI = 3,
GFX_SUPER2XSAI = 4,
GFX_SUPEREAGLE = 5,
GFX_ADVMAME2X = 6,
GFX_ADVMAME3X = 7,
GFX_HQ2X = 8,
GFX_HQ3X = 9,
GFX_TV2X = 10,
GFX_DOTMATRIX = 11
};
class AspectRatio {
int _kw, _kh;