Implement FR #1595534: "Touche: Aspect Ratio Correction"

svn-id: r24706
This commit is contained in:
Eugene Sandulenko 2006-11-13 13:53:14 +00:00
parent 4d840e5295
commit 75b062b89f
2 changed files with 6 additions and 3 deletions

View File

@ -316,7 +316,7 @@ void OSystem_SDL::loadGFXMode() {
_overlayWidth = _screenWidth * _scaleFactor;
_overlayHeight = _screenHeight * _scaleFactor;
if (_screenHeight != 200)
if (_screenHeight != 200 && _screenHeight != 400)
_adjustAspectRatio = false;
if (_adjustAspectRatio)
@ -735,7 +735,7 @@ void OSystem_SDL::setFullscreenMode(bool enable) {
}
void OSystem_SDL::setAspectRatioCorrection(bool enable) {
if ((_screenHeight == 200 && _adjustAspectRatio != enable) ||
if (((_screenHeight == 200 || _screenHeight == 400) && _adjustAspectRatio != enable) ||
_transactionMode == kTransactionCommit) {
Common::StackLock lock(_graphicsMutex);

View File

@ -399,7 +399,10 @@ protected:
virtual bool saveScreenshot(const char *filename); // overloaded by CE backend
int effectiveScreenHeight() const { return (_adjustAspectRatio ? 240 : _screenHeight) * _scaleFactor; }
int effectiveScreenHeight() const {
return (_adjustAspectRatio ? real2Aspect(_screenHeight) : _screenHeight)
* _scaleFactor;
}
void setupIcon();
void handleKbdMouse();