Implement FR #1595534: "Touche: Aspect Ratio Correction"
svn-id: r24706
This commit is contained in:
parent
4d840e5295
commit
75b062b89f
2 changed files with 6 additions and 3 deletions
|
@ -316,7 +316,7 @@ void OSystem_SDL::loadGFXMode() {
|
||||||
_overlayWidth = _screenWidth * _scaleFactor;
|
_overlayWidth = _screenWidth * _scaleFactor;
|
||||||
_overlayHeight = _screenHeight * _scaleFactor;
|
_overlayHeight = _screenHeight * _scaleFactor;
|
||||||
|
|
||||||
if (_screenHeight != 200)
|
if (_screenHeight != 200 && _screenHeight != 400)
|
||||||
_adjustAspectRatio = false;
|
_adjustAspectRatio = false;
|
||||||
|
|
||||||
if (_adjustAspectRatio)
|
if (_adjustAspectRatio)
|
||||||
|
@ -735,7 +735,7 @@ void OSystem_SDL::setFullscreenMode(bool enable) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void OSystem_SDL::setAspectRatioCorrection(bool enable) {
|
void OSystem_SDL::setAspectRatioCorrection(bool enable) {
|
||||||
if ((_screenHeight == 200 && _adjustAspectRatio != enable) ||
|
if (((_screenHeight == 200 || _screenHeight == 400) && _adjustAspectRatio != enable) ||
|
||||||
_transactionMode == kTransactionCommit) {
|
_transactionMode == kTransactionCommit) {
|
||||||
Common::StackLock lock(_graphicsMutex);
|
Common::StackLock lock(_graphicsMutex);
|
||||||
|
|
||||||
|
|
|
@ -399,7 +399,10 @@ protected:
|
||||||
|
|
||||||
virtual bool saveScreenshot(const char *filename); // overloaded by CE backend
|
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 setupIcon();
|
||||||
void handleKbdMouse();
|
void handleKbdMouse();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue