Skip to content

Commit

Permalink
ACCESS: Give default draw implementations for sprite drawing routines
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 14, 2014
1 parent 79e743b commit cf901ae
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions engines/access/asurface.cpp
Expand Up @@ -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

0 comments on commit cf901ae

Please sign in to comment.