mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
SCI: Get rid of casts on OSystem::copyRectToScreen calls.
This commit is contained in:
parent
ebb5cb7e4c
commit
084c1259fc
@ -100,7 +100,7 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) {
|
||||
g_sci->_gfxScreen->scale2x((byte *)frame->pixels, scaleBuffer, videoDecoder->getWidth(), videoDecoder->getHeight(), bytesPerPixel);
|
||||
g_system->copyRectToScreen(scaleBuffer, pitch, x, y, width, height);
|
||||
} else {
|
||||
g_system->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, width, height);
|
||||
g_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, width, height);
|
||||
}
|
||||
|
||||
if (videoDecoder->hasDirtyPalette())
|
||||
|
@ -496,7 +496,7 @@ void GfxFrameout::showVideo() {
|
||||
if (videoDecoder->needsUpdate()) {
|
||||
const Graphics::Surface *frame = videoDecoder->decodeNextFrame();
|
||||
if (frame) {
|
||||
g_system->copyRectToScreen((byte *)frame->pixels, frame->pitch, x, y, frame->w, frame->h);
|
||||
g_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, frame->w, frame->h);
|
||||
|
||||
if (videoDecoder->hasDirtyPalette())
|
||||
videoDecoder->setSystemPalette();
|
||||
|
@ -129,7 +129,7 @@ void GfxMacIconBar::drawIcon(uint16 iconIndex, bool selected) {
|
||||
|
||||
void GfxMacIconBar::drawEnabledImage(Graphics::Surface *surface, const Common::Rect &rect) {
|
||||
if (surface)
|
||||
g_system->copyRectToScreen((byte *)surface->pixels, surface->pitch, rect.left, rect.top, rect.width(), rect.height());
|
||||
g_system->copyRectToScreen(surface->pixels, surface->pitch, rect.left, rect.top, rect.width(), rect.height());
|
||||
}
|
||||
|
||||
void GfxMacIconBar::drawDisabledImage(Graphics::Surface *surface, const Common::Rect &rect) {
|
||||
@ -153,7 +153,7 @@ void GfxMacIconBar::drawDisabledImage(Graphics::Surface *surface, const Common::
|
||||
*((byte *)newSurf.getBasePtr(j, i)) = 0;
|
||||
}
|
||||
|
||||
g_system->copyRectToScreen((byte *)newSurf.pixels, newSurf.pitch, rect.left, rect.top, rect.width(), rect.height());
|
||||
g_system->copyRectToScreen(newSurf.pixels, newSurf.pitch, rect.left, rect.top, rect.width(), rect.height());
|
||||
newSurf.free();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user