From 96f2d9ca18eea27eaffda76fbce2168cddebbfb1 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Fri, 4 Jul 2008 20:05:30 +0000 Subject: Memory leaks. Bug fixes. svn-id: r32908 --- graphics/VectorRenderer.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'graphics') 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 } -- cgit v1.2.3