From 968aec7627ab397e48ce8039ec1e4789c64c5f37 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 12 May 2009 08:27:06 +0000 Subject: Synced WinCE SDL backend with the changes in commit #40226. Hopefully, this will fix bug #2790461 - "WINCE: Compilation broken" svn-id: r40475 --- backends/platform/wince/wince-sdl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backends/platform/wince/wince-sdl.cpp') diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index a191af0810..6d27b46813 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -1153,7 +1153,7 @@ bool OSystem_WINCE3::update_scalers() { if (_videoMode.mode != GFX_NORMAL) return false; - _videoMode.aspectRatio = false; + _videoMode.aspectRatioCorrection = false; if (CEDevice::hasPocketPCResolution()) { if ( (!_orientationLandscape && (_videoMode.screenWidth == 320 || !_videoMode.screenWidth)) @@ -1181,7 +1181,7 @@ bool OSystem_WINCE3::update_scalers() { _scaleFactorYd = 5; _scalerProc = PocketPCLandscapeAspect; _modeFlags = 0; - _videoMode.aspectRatio = true; + _videoMode.aspectRatioCorrection = true; } else { _scaleFactorXm = 1; _scaleFactorXd = 1; @@ -1367,7 +1367,7 @@ bool OSystem_WINCE3::loadGFXMode() { // Create the surface that contains the scaled graphics in 16 bit mode // Always use full screen mode to have a "clean screen" - if (!_videoMode.aspectRatio) { + if (!_videoMode.aspectRatioCorrection) { displayWidth = _videoMode.screenWidth * _scaleFactorXm / _scaleFactorXd; displayHeight = _videoMode.screenHeight * _scaleFactorYm / _scaleFactorYd; } else { @@ -1559,7 +1559,7 @@ void OSystem_WINCE3::internUpdateScreen() { // If the shake position changed, fill the dirty area with blackness if (_currentShakePos != _newShakePos) { SDL_Rect blackrect = {0, 0, _videoMode.screenWidth * _scaleFactorXm / _scaleFactorXd, _newShakePos * _scaleFactorYm / _scaleFactorYd}; - if (_videoMode.aspectRatio) + if (_videoMode.aspectRatioCorrection) blackrect.h = real2Aspect(blackrect.h - 1) + 1; SDL_FillRect(_hwscreen, &blackrect, 0); _currentShakePos = _newShakePos; -- cgit v1.2.3