mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
SWORD2: Get rid of casts on OSystem::copyRectToScreen calls.
This commit is contained in:
parent
5f65cf9679
commit
808e41d807
@ -332,7 +332,7 @@ bool MoviePlayer::playVideo() {
|
|||||||
if (_decoderType == kVideoDecoderPSX)
|
if (_decoderType == kVideoDecoderPSX)
|
||||||
drawFramePSX(frame);
|
drawFramePSX(frame);
|
||||||
else
|
else
|
||||||
_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 (_decoder->hasDirtyPalette()) {
|
if (_decoder->hasDirtyPalette()) {
|
||||||
@ -401,7 +401,7 @@ void MoviePlayer::drawFramePSX(const Graphics::Surface *frame) {
|
|||||||
uint16 x = (g_system->getWidth() - scaledFrame.w) / 2;
|
uint16 x = (g_system->getWidth() - scaledFrame.w) / 2;
|
||||||
uint16 y = (g_system->getHeight() - scaledFrame.h) / 2;
|
uint16 y = (g_system->getHeight() - scaledFrame.h) / 2;
|
||||||
|
|
||||||
_vm->_system->copyRectToScreen((byte *)scaledFrame.pixels, scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h);
|
_vm->_system->copyRectToScreen(scaledFrame.pixels, scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h);
|
||||||
|
|
||||||
scaledFrame.free();
|
scaledFrame.free();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user