Ticket #7519: scummvm-stretch12.diff
File scummvm-stretch12.diff, 1.4 KB (added by , 18 years ago) |
---|
-
backends/platform/sdl/graphics.cpp
316 316 _overlayWidth = _screenWidth * _scaleFactor; 317 317 _overlayHeight = _screenHeight * _scaleFactor; 318 318 319 if ( _screenHeight != 200)319 if (!isStretchable()) 320 320 _adjustAspectRatio = false; 321 321 322 322 if (_adjustAspectRatio) … … 735 735 } 736 736 737 737 void OSystem_SDL::setAspectRatioCorrection(bool enable) { 738 if (( _screenHeight == 200&& _adjustAspectRatio != enable) ||738 if ((isStretchable() && _adjustAspectRatio != enable) || 739 739 _transactionMode == kTransactionCommit) { 740 740 Common::StackLock lock(_graphicsMutex); 741 741 -
backends/platform/sdl/sdl-common.h
399 399 400 400 virtual bool saveScreenshot(const char *filename); // overloaded by CE backend 401 401 402 int effectiveScreenHeight() const { return (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; } 402 int effectiveScreenHeight() const { return (_adjustAspectRatio ? real2Aspect(_screenHeight) : _screenHeight) * _scaleFactor; } 403 bool isStretchable() const { return _screenHeight % 200 == 0; } 403 404 404 405 void setupIcon(); 405 406 void handleKbdMouse();