aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-13 23:03:18 -0400
committerPaul Gilbert2014-08-13 23:03:18 -0400
commitcf901ae142044227f5c34c33ab45eb8a0351ce93 (patch)
tree755d6a590b0371c8f126079d8e6f45727a20e251 /engines/access
parent79e743ba82b14dce808f3dcda6e173fa6f138137 (diff)
downloadscummvm-rg350-cf901ae142044227f5c34c33ab45eb8a0351ce93.tar.gz
scummvm-rg350-cf901ae142044227f5c34c33ab45eb8a0351ce93.tar.bz2
scummvm-rg350-cf901ae142044227f5c34c33ab45eb8a0351ce93.zip
ACCESS: Give default draw implementations for sprite drawing routines
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/asurface.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp
index 6df8a4ae3d..5824545af7 100644
--- a/engines/access/asurface.cpp
+++ b/engines/access/asurface.cpp
@@ -226,26 +226,19 @@ void ASurface::copyTo(ASurface *dest, const Common::Point &destPos) {
}
void ASurface::sPlotB(SpriteFrame *frame, const Common::Point &pt) {
- error("TODO");
+ frame->copyTo(this, pt);
}
void ASurface::sPlotF(SpriteFrame *frame, const Common::Point &pt) {
- error("TODO");
+ frame->copyTo(this, pt);
}
void ASurface::plotB(SpriteFrame *frame, const Common::Point &pt) {
- error("TODO");
+ frame->copyTo(this, pt);
}
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;
- }
+ copyRectToSurface(*src, bounds.left, bounds.top, bounds);
}
} // End of namespace Access