diff options
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/VectorRenderer.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index 0e679663d9..d6b315d2b3 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -535,22 +535,17 @@ public: * @see VectorRenderer::copyFrame() */ 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->getBasePtr(r.left, r.top), - _activeSurface->w, r.top, r.left, r.width(), r.height()); -#else - sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(r.left, r.top), - _activeSurface->w, r.top, r.left, r.width(), r.height()); -#endif + sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(r.left, r.top), + _activeSurface->w, r.left, r.top, r.width(), r.height()); } virtual void copyWholeFrame(OSystem *sys) { #ifdef OVERLAY_MULTIPLE_DEPTHS sys->copyRectToOverlay((const PixelType*)_activeSurface->getBasePtr(0, 0), - _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->h); + _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->h); #else sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(0, 0), - _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->h); + _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->h); #endif } |
