diff --git a/backends/platform/gp2x/graphics.cpp b/backends/platform/gp2x/graphics.cpp index cae596b9ffe..34108367cfa 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;