diff options
author | Vicent Marti | 2008-06-29 12:08:53 +0000 |
---|---|---|
committer | Vicent Marti | 2008-06-29 12:08:53 +0000 |
commit | f1173f52a24de56fd7ad91e5806917db8c11ee63 (patch) | |
tree | 9ebc022d02428390e3f8dd3dbc0f35182abd816f /graphics | |
parent | 0e4cd6fc8ea9d72f4d07dbfeabcabf50d6d1c2bd (diff) | |
download | scummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.tar.gz scummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.tar.bz2 scummvm-rg350-f1173f52a24de56fd7ad91e5806917db8c11ee63.zip |
Changes to rendering pipeline. WIP.
svn-id: r32837
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VectorRenderer.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/graphics/VectorRenderer.h b/graphics/VectorRenderer.h index d989781d5c..9b2e6cd383 100644 --- a/graphics/VectorRenderer.h +++ b/graphics/VectorRenderer.h @@ -406,7 +406,7 @@ public: * * @param sys Pointer to the global System class */ - virtual void copyFrame(OSystem *sys) = 0; + virtual void copyFrame(OSystem *sys, Common::Rect &r) = 0; /** * Blits a given graphics surface on top of the current drawing surface. @@ -533,15 +533,14 @@ public: /** * @see VectorRenderer::copyFrame() */ - virtual void copyFrame(OSystem *sys) { -#ifdef OVERLAY_MULTIPLE_DEPTHS - sys->copyRectToOverlay((const PixelType*)_activeSurface->getBasePtr(0, 0), - _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->w); + virtual void copyFrame(OSystem *sys, 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()); #else - sys->copyRectToOverlay((const OverlayColor*)_activeSurface->getBasePtr(0, 0), - _activeSurface->w, 0, 0, _activeSurface->w, _activeSurface->w); + sys->copyRectToOverlay((const OverlayColor*)_activeSurface->pixels, + _activeSurface->pitch, r.top, r.left, r.width(), r.height()); #endif - sys->updateScreen(); } /** |