mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
GCW0: Fully disable the downscaling code
This commit is contained in:
parent
153576f0b5
commit
f2d323628d
@ -35,10 +35,6 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
|
||||
{0, 0, 0}
|
||||
};
|
||||
|
||||
#ifndef USE_SCALERS
|
||||
#define DownscaleAllByHalf 0
|
||||
#endif
|
||||
|
||||
DINGUXSdlGraphicsManager::DINGUXSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window)
|
||||
: SurfaceSdlGraphicsManager(sdlEventSource, window) {
|
||||
}
|
||||
@ -55,9 +51,7 @@ int DINGUXSdlGraphicsManager::getGraphicsModeScale(int mode) const {
|
||||
int scale;
|
||||
switch (mode) {
|
||||
case GFX_NORMAL:
|
||||
#ifdef USE_SCALERS
|
||||
case GFX_HALF:
|
||||
#endif
|
||||
scale = 1;
|
||||
break;
|
||||
default:
|
||||
@ -73,11 +67,9 @@ ScalerProc *DINGUXSdlGraphicsManager::getGraphicsScalerProc(int mode) const {
|
||||
case GFX_NORMAL:
|
||||
newScalerProc = Normal1x;
|
||||
break;
|
||||
#ifdef USE_SCALERS
|
||||
case GFX_HALF:
|
||||
newScalerProc = DownscaleAllByHalf;
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return newScalerProc;
|
||||
@ -114,13 +106,11 @@ void DINGUXSdlGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFor
|
||||
_videoMode.screenWidth = w;
|
||||
_videoMode.screenHeight = h;
|
||||
|
||||
#ifndef GCW0
|
||||
if (w > 320 || h > 240) {
|
||||
setGraphicsMode(GFX_HALF);
|
||||
setGraphicsModeIntern();
|
||||
_window->toggleMouseGrab();
|
||||
}
|
||||
#endif
|
||||
|
||||
_transactionDetails.sizeChanged = true;
|
||||
}
|
||||
@ -435,14 +425,11 @@ void DINGUXSdlGraphicsManager::setupHardwareSize() {
|
||||
_videoMode.aspectRatioCorrection = false;
|
||||
}
|
||||
|
||||
#ifndef GCW0
|
||||
if (_videoMode.screenWidth > 320 || _videoMode.screenHeight > 240) {
|
||||
_videoMode.aspectRatioCorrection = false;
|
||||
setGraphicsMode(GFX_HALF);
|
||||
debug("GraphicsMode set to HALF");
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
} else {
|
||||
setGraphicsMode(GFX_NORMAL);
|
||||
debug("GraphicsMode set to NORMAL");
|
||||
}
|
||||
|
@ -33,10 +33,12 @@ void OSystem_SDL_Dingux::initBackend() {
|
||||
if (_eventSource == 0)
|
||||
_eventSource = new DINGUXSdlEventSource();
|
||||
|
||||
#ifndef GCW0
|
||||
// Create the graphics manager
|
||||
if (_graphicsManager == 0) {
|
||||
_graphicsManager = new DINGUXSdlGraphicsManager(_eventSource, _window);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Call parent implementation of this method
|
||||
OSystem_POSIX::initBackend();
|
||||
|
Loading…
x
Reference in New Issue
Block a user