aboutsummaryrefslogtreecommitdiff
path: root/engines/access/asurface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-12 08:38:12 -0400
committerPaul Gilbert2014-08-12 08:38:12 -0400
commitc0cb03cea276832b2d178155786c0418eccfd21d (patch)
tree681f08affbb7b40002722836268bde02306ad5a6 /engines/access/asurface.cpp
parenteee84b8760dd38079fe97f263a6fa9361ad5696f (diff)
downloadscummvm-rg350-c0cb03cea276832b2d178155786c0418eccfd21d.tar.gz
scummvm-rg350-c0cb03cea276832b2d178155786c0418eccfd21d.tar.bz2
scummvm-rg350-c0cb03cea276832b2d178155786c0418eccfd21d.zip
ACCESS: Implemented copyBlocks
Diffstat (limited to 'engines/access/asurface.cpp')
-rw-r--r--engines/access/asurface.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp
index fe11612075..5a090afaca 100644
--- a/engines/access/asurface.cpp
+++ b/engines/access/asurface.cpp
@@ -231,4 +231,15 @@ void ASurface::plotB(SpriteFrame *frame, const Common::Point &pt) {
error("TODO");
}
+void ASurface::copyBlock(ASurface *src, const Common::Rect &bounds) {
+ byte *srcP = (byte *)getBasePtr(bounds.left, bounds.top + _scrollY);
+ byte *destP = (byte *)getBasePtr(bounds.left, bounds.top); /* + _windowYAdd */
+
+ for (int y = 0; y < bounds.height(); ++y) {
+ Common::copy(srcP, srcP + bounds.width(), destP);
+ srcP += src->pitch;
+ destP += this->pitch;
+ }
+}
+
} // End of namespace Access