aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/data/animation.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-02 23:44:26 +0200
committerJohannes Schickel2013-08-03 02:52:32 +0200
commit786ad6cea0caa076b1af56eb2bb6d85075e6bfd0 (patch)
treee23fab84708ca444b6c9938e5a2b39d3fb9d496f /engines/lastexpress/data/animation.cpp
parent578715b6f69bcd846e31ae4f207c759ee05022c8 (diff)
downloadscummvm-rg350-786ad6cea0caa076b1af56eb2bb6d85075e6bfd0.tar.gz
scummvm-rg350-786ad6cea0caa076b1af56eb2bb6d85075e6bfd0.tar.bz2
scummvm-rg350-786ad6cea0caa076b1af56eb2bb6d85075e6bfd0.zip
LASTEXPRESS: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/lastexpress/data/animation.cpp')
-rw-r--r--engines/lastexpress/data/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lastexpress/data/animation.cpp b/engines/lastexpress/data/animation.cpp
index 7618259e69..e9500aec38 100644
--- a/engines/lastexpress/data/animation.cpp
+++ b/engines/lastexpress/data/animation.cpp
@@ -270,7 +270,7 @@ void Animation::play() {
draw(s);
// XXX: Update the screen
- g_system->copyRectToScreen(s->pixels, s->pitch, 0, 0, s->w, s->h);
+ g_system->copyRectToScreen(s->getBasePtr(0, 0), s->pitch, 0, 0, s->w, s->h);
// Free the temporary surface
s->free();