aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorVicent Marti2008-07-04 20:05:30 +0000
committerVicent Marti2008-07-04 20:05:30 +0000
commit96f2d9ca18eea27eaffda76fbce2168cddebbfb1 (patch)
tree14043c0e25e1e57f87928200c008a44dfac8e842 /graphics
parent3b73b199a6006a84df06453335354e4e6728f6af (diff)
downloadscummvm-rg350-96f2d9ca18eea27eaffda76fbce2168cddebbfb1.tar.gz
scummvm-rg350-96f2d9ca18eea27eaffda76fbce2168cddebbfb1.tar.bz2
scummvm-rg350-96f2d9ca18eea27eaffda76fbce2168cddebbfb1.zip
Memory leaks.
Bug fixes. svn-id: r32908
Diffstat (limited to 'graphics')
-rw-r--r--graphics/VectorRenderer.h13
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
}