mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
TEENAGENT: Get rid of casts on OSystem::copyRectToScreen calls.
This commit is contained in:
parent
808e41d807
commit
f3c66a191f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user