GCW0: Enable building with all scalers disabled

This commit is contained in:
Eugene Sandulenko 2016-04-10 14:06:34 +02:00
parent 849ab0d9d3
commit 39dc1dd2e1
2 changed files with 9 additions and 1 deletions

View File

@ -35,6 +35,10 @@ static const OSystem::GraphicsMode s_supportedGraphicsModes[] = {
{0, 0, 0}
};
#ifndef USE_SCALERS
#define DownscaleAllByHalf 0
#endif
DINGUXSdlGraphicsManager::DINGUXSdlGraphicsManager(SdlEventSource *boss, SdlWindow *window)
: SurfaceSdlGraphicsManager(boss, window) {
}
@ -61,9 +65,11 @@ bool DINGUXSdlGraphicsManager::setGraphicsMode(int mode) {
case GFX_NORMAL:
newScaleFactor = 1;
break;
#ifdef USE_SCALERS
case GFX_HALF:
newScaleFactor = 1;
break;
#endif
default:
warning("unknown gfx mode %d", mode);
return false;
@ -89,9 +95,11 @@ void DINGUXSdlGraphicsManager::setGraphicsModeIntern() {
case GFX_NORMAL:
newScalerProc = Normal1x;
break;
#ifdef USE_SCALERS
case GFX_HALF:
newScalerProc = DownscaleAllByHalf;
break;
#endif
default:
error("Unknown gfx mode %d", _videoMode.mode);

2
configure vendored
View File

@ -2738,7 +2738,7 @@ if test -n "$_host"; then
_mt32emu=no
_seq_midi=no
_timidity=no
_build_hq_scalers=no
_build_scalers=no
_optimization_level=-O3
_vkeybd=yes
_keymapper=yes