From beba350baa4295b08afa72419e1fb77cadbd274c Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 13 Aug 2016 16:33:14 -0500 Subject: SCI32: Fix cast warnings --- engines/sci/graphics/video32.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/graphics/video32.cpp b/engines/sci/graphics/video32.cpp index 757d793c44..51be08dac9 100644 --- a/engines/sci/graphics/video32.cpp +++ b/engines/sci/graphics/video32.cpp @@ -372,8 +372,8 @@ void AVIPlayer::renderFrame() const { // to always be white if (getSciVersion() == SCI_VERSION_2_1_EARLY && g_sci->getGameId() == GID_KQ7) { uint8 *target = bitmap.getPixels(); - uint8 *source = (uint8 *)surface->getPixels(); - uint8 *end = (uint8 *)surface->getPixels() + surface->w * surface->h; + const uint8 *source = (const uint8 *)surface->getPixels(); + const uint8 *end = (const uint8 *)surface->getPixels() + surface->w * surface->h; while (source != end) { uint8 value = *source++; @@ -409,7 +409,7 @@ void AVIPlayer::renderFrame() const { Common::Rect drawRect(_drawRect); if (_pixelDouble) { - const uint32 *source = (uint32 *)surface->getPixels(); + const uint32 *source = (const uint32 *)surface->getPixels(); uint32 *target = (uint32 *)_scaleBuffer; // target pitch here is in uint32s, not bytes const uint16 pitch = surface->pitch / 2; -- cgit v1.2.3