aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/access/asurface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp
index 27e73a0640..38af7add00 100644
--- a/engines/access/asurface.cpp
+++ b/engines/access/asurface.cpp
@@ -252,7 +252,11 @@ void ASurface::transCopyFrom(ASurface &src) {
}
void ASurface::copyFrom(Graphics::Surface &src) {
- Graphics::Surface::copyFrom(src);
+ for (int y = 0; y < src.h; ++y) {
+ const byte *srcP = (const byte *)src.getBasePtr(0, y);
+ byte *destP = (byte *)getBasePtr(0, y);
+ Common::copy(srcP, srcP + src.w, destP);
+ }
}
void ASurface::copyBuffer(Graphics::Surface *src) {