mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 16:26:53 +00:00
SAGA: Get rid of casts on OSystem::copyRectToScreen calls.
This commit is contained in:
parent
d214391431
commit
ebb5cb7e4c
@ -212,7 +212,7 @@ bool Scene::playTitle(int title, int time, int mode) {
|
||||
break;
|
||||
|
||||
case 2: // display background
|
||||
_vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
_vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
backBufferSurface->w, backBufferSurface->h);
|
||||
phase++;
|
||||
startTime = curTime;
|
||||
@ -247,7 +247,7 @@ bool Scene::playTitle(int title, int time, int mode) {
|
||||
|
||||
frameTime = curTime;
|
||||
|
||||
_vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
_vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
backBufferSurface->w, backBufferSurface->h);
|
||||
}
|
||||
|
||||
@ -274,7 +274,7 @@ bool Scene::playTitle(int title, int time, int mode) {
|
||||
_vm->_anim->endVideo();
|
||||
|
||||
memset((byte *)backBufferSurface->pixels, 0, backBufferSurface->w * backBufferSurface->h);
|
||||
_vm->_system->copyRectToScreen((byte *)backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
_vm->_system->copyRectToScreen(backBufferSurface->pixels, backBufferSurface->w, 0, 0,
|
||||
backBufferSurface->w, backBufferSurface->h);
|
||||
|
||||
return interrupted;
|
||||
|
@ -105,7 +105,7 @@ void Scene::playMovie(const char *filename) {
|
||||
if (smkDecoder->needsUpdate()) {
|
||||
const Graphics::Surface *frame = smkDecoder->decodeNextFrame();
|
||||
if (frame) {
|
||||
_vm->_system->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, frame->w, frame->h);
|
||||
_vm->_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, frame->w, frame->h);
|
||||
|
||||
if (smkDecoder->hasDirtyPalette())
|
||||
smkDecoder->setSystemPalette();
|
||||
|
Loading…
Reference in New Issue
Block a user