aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/graphics.cpp
diff options
context:
space:
mode:
authorJohn Willis2009-04-16 11:19:44 +0000
committerJohn Willis2009-04-16 11:19:44 +0000
commit52fa15561a282d6ac7b1a6e34312482d40de6b67 (patch)
treec137855c759e3044fd22ff05cbe8969f408603f6 /backends/platform/gp2x/graphics.cpp
parent08eb58aab8c3c368129107a47f64755abb85e704 (diff)
downloadscummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.tar.gz
scummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.tar.bz2
scummvm-rg350-52fa15561a282d6ac7b1a6e34312482d40de6b67.zip
Backout previous 'ooops' change (while shaking a stick at SVN and trying to convince people (badly) that is was not just simple user error ;-)).
svn-id: r39961
Diffstat (limited to 'backends/platform/gp2x/graphics.cpp')
-rw-r--r--backends/platform/gp2x/graphics.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/backends/platform/gp2x/graphics.cpp b/backends/platform/gp2x/graphics.cpp
index 3f99e6dc16..775c3afb73 100644
--- a/backends/platform/gp2x/graphics.cpp
+++ b/backends/platform/gp2x/graphics.cpp
@@ -739,18 +739,18 @@ void OSystem_GP2X::setFullscreenMode(bool enable) {
}
void OSystem_GP2X::setAspectRatioCorrection(bool enable) {
-
if ((_videoMode.screenHeight == 200 && _videoMode.aspectRatio != enable) ||
_transactionMode == kTransactionActive) {
+
Common::StackLock lock(_graphicsMutex);
- }
- if (_oldVideoMode.setup && _oldVideoMode.aspectRatio == enable)
- return;
+ if (_oldVideoMode.setup && _oldVideoMode.aspectRatio == enable)
+ return;
- if (_transactionMode == kTransactionActive) {
- _videoMode.aspectRatio = enable;
- _transactionDetails.needHotswap = true;
+ if (_transactionMode == kTransactionActive) {
+ _videoMode.aspectRatio = enable;
+ _transactionDetails.needHotswap = true;
+ }
}
}