aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-06-16 02:37:41 +0200
committerJohannes Schickel2012-06-16 02:39:00 +0200
commitf3c66a191f528004ea063025513dcd3a7d2d5d04 (patch)
tree9b295b782a66eafff21b76c97df34e152f672faf
parent808e41d807cd909d18dadc612bc77d14bae2a18e (diff)
downloadscummvm-rg350-f3c66a191f528004ea063025513dcd3a7d2d5d04.tar.gz
scummvm-rg350-f3c66a191f528004ea063025513dcd3a7d2d5d04.tar.bz2
scummvm-rg350-f3c66a191f528004ea063025513dcd3a7d2d5d04.zip
TEENAGENT: Get rid of casts on OSystem::copyRectToScreen calls.
-rw-r--r--engines/teenagent/scene.cpp4
-rw-r--r--engines/teenagent/teenagent.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index e8c2dec4fa..038c8ea05e 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -423,7 +423,7 @@ void Scene::init(int id, const Common::Point &pos) {
if (now_playing != res->dseg.get_byte(0xDB90))
_engine->music->load(res->dseg.get_byte(0xDB90));
- _system->copyRectToScreen((const byte *)background.pixels, background.pitch, 0, 0, background.w, background.h);
+ _system->copyRectToScreen(background.pixels, background.pitch, 0, 0, background.w, background.h);
setPalette(0);
}
@@ -654,7 +654,7 @@ bool Scene::render(bool tick_game, bool tick_mark, uint32 delta) {
}
if (background.pixels && debug_features.feature[DebugFeatures::kShowBack]) {
- _system->copyRectToScreen((const byte *)background.pixels, background.pitch, 0, 0, background.w, background.h);
+ _system->copyRectToScreen(background.pixels, background.pitch, 0, 0, background.w, background.h);
} else
_system->fillScreen(0);
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp
index fb228ef2fc..f06de6f803 100644
--- a/engines/teenagent/teenagent.cpp
+++ b/engines/teenagent/teenagent.cpp
@@ -389,7 +389,7 @@ bool TeenAgentEngine::showLogo() {
return true;
}
- _system->copyRectToScreen((const byte *)s.pixels, s.w, s.x, s.y, s.w, s.h);
+ _system->copyRectToScreen(s.pixels, s.w, s.x, s.y, s.w, s.h);
_system->updateScreen();
_system->delayMillis(100);