aboutsummaryrefslogtreecommitdiff
path: root/graphics/VectorRenderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/VectorRenderer.h')
-rw-r--r--graphics/VectorRenderer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h
index d6b315d2b3..08c8a8435d 100644
--- a/graphics/VectorRenderer.h
+++ b/graphics/VectorRenderer.h
@@ -535,8 +535,13 @@ public:
* @see VectorRenderer::copyFrame()
*/
virtual void copyFrame(OSystem *sys, const Common::Rect &r) {
+#ifdef OVERLAY_MULTIPLE_DEPTHS
+ sys->copyRectToOverlay((const PixelType*)_activeSurface->getBasePtr(r.left, r.top),
+ _activeSurface->w, r.left, r.top, r.width(), r.height());
+#else
sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(r.left, r.top),
_activeSurface->w, r.left, r.top, r.width(), r.height());
+#endif
}
virtual void copyWholeFrame(OSystem *sys) {