diff options
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r-- | graphics/VectorRenderer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 0b9ccc4836..0e679663d9 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -536,11 +536,11 @@ public: */ virtual void copyFrame(OSystem *sys, const Common::Rect &r) { #ifdef OVERLAY_MULTIPLE_DEPTHS // TODO: change OSystem to support templated copyRectToOverlay - sys->copyRectToOverlay((const PixelType*)_activeSurface->pixels, - _activeSurface->pitch, r.top, r.left, r.width(), r.height()); + sys->copyRectToOverlay((const PixelType*)_activeSurface->getBasePtr(r.left, r.top), + _activeSurface->w, r.top, r.left, r.width(), r.height()); #else - sys->copyRectToOverlay((const OverlayColor*)_activeSurface->pixels, - _activeSurface->pitch, r.top, r.left, r.width(), r.height()); + sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(r.left, r.top), + _activeSurface->w, r.top, r.left, r.width(), r.height()); #endif } |