diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/asurface.cpp | 15 |
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 |