aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x
diff options
context:
space:
mode:
authorMax Horn2010-03-12 10:31:58 +0000
committerMax Horn2010-03-12 10:31:58 +0000
commit314a119b9d506ac866bfeae7145c84bb253f3a65 (patch)
treebf783ef771ec30368ab77fcb2ea7d7bececf45a8 /backends/platform/gp2x
parentd3c29a62ae185bc8e16e0f227899b374bbe5784b (diff)
downloadscummvm-rg350-314a119b9d506ac866bfeae7145c84bb253f3a65.tar.gz
scummvm-rg350-314a119b9d506ac866bfeae7145c84bb253f3a65.tar.bz2
scummvm-rg350-314a119b9d506ac866bfeae7145c84bb253f3a65.zip
GP2x: Oops, forgot to checkin this file
svn-id: r48244
Diffstat (limited to 'backends/platform/gp2x')
-rw-r--r--backends/platform/gp2x/graphics.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/gp2x/graphics.cpp b/backends/platform/gp2x/graphics.cpp
index cae596b9ff..34108367cf 100644
--- a/backends/platform/gp2x/graphics.cpp
+++ b/backends/platform/gp2x/graphics.cpp
@@ -277,6 +277,12 @@ void OSystem_GP2X::initSize(uint w, uint h, const Graphics::PixelFormat *format)
_dirtyChecksums = (uint32 *)calloc(_cksumNum * 2, sizeof(uint32));
}
+int OSystem_GP2X::effectiveScreenHeight() const {
+ return (_videoMode.aspectRatioCorrection ? real2Aspect(_videoMode.screenHeight) : _videoMode.screenHeight)
+ * _videoMode.scaleFactor;
+}
+
+
bool OSystem_GP2X::loadGFXMode() {
assert(_inited);
_forceFull = true;