aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 02:33:53 +0200
committerJohannes Schickel2012-06-16 02:38:59 +0200
commit2e97e043fb8610d1d85bbd3e5e2d7ad4990ef8a0 (patch)
tree1b991ecfea03ad9b496f2f23b7ca0cbe1afb7a58
parent2afc0a5fbc963562b5826965f4498156d1767a62 (diff)
downloadscummvm-rg350-2e97e043fb8610d1d85bbd3e5e2d7ad4990ef8a0.tar.gz
scummvm-rg350-2e97e043fb8610d1d85bbd3e5e2d7ad4990ef8a0.tar.bz2
scummvm-rg350-2e97e043fb8610d1d85bbd3e5e2d7ad4990ef8a0.zip
LASTEXPRESS: Get rid of casts on OSystem::copyRectToScreen calls.
-rw-r--r--engines/lastexpress/data/animation.cpp2
-rw-r--r--engines/lastexpress/graphics.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/lastexpress/data/animation.cpp b/engines/lastexpress/data/animation.cpp
index 28d30ec7d1..9d0ed532f2 100644
--- a/engines/lastexpress/data/animation.cpp
+++ b/engines/lastexpress/data/animation.cpp
@@ -272,7 +272,7 @@ void Animation::play() {
draw(s);
// XXX: Update the screen
- g_system->copyRectToScreen((byte *)s->pixels, s->pitch, 0, 0, s->w, s->h);
+ g_system->copyRectToScreen(s->pixels, s->pitch, 0, 0, s->w, s->h);
// Free the temporary surface
s->free();
diff --git a/engines/lastexpress/graphics.cpp b/engines/lastexpress/graphics.cpp
index e129457256..753c3a39e4 100644
--- a/engines/lastexpress/graphics.cpp
+++ b/engines/lastexpress/graphics.cpp
@@ -160,7 +160,7 @@ void GraphicsManager::mergePlanes() {
void GraphicsManager::updateScreen() {
g_system->fillScreen(0);
- g_system->copyRectToScreen((byte *)_screen.getBasePtr(0, 0), 640 * 2, 0, 0, 640, 480);
+ g_system->copyRectToScreen(_screen.getBasePtr(0, 0), 640 * 2, 0, 0, 640, 480);
}
} // End of namespace LastExpress