aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2016-08-13 16:33:14 -0500
committerColin Snover2016-08-13 16:33:14 -0500
commitbeba350baa4295b08afa72419e1fb77cadbd274c (patch)
treea3ade9ebcf6a4fb8808b8881bb2d6b6290f7ba1d /engines/sci
parent22c7be2c86304784a56f1aa755436a0c24a12cf2 (diff)
downloadscummvm-rg350-beba350baa4295b08afa72419e1fb77cadbd274c.tar.gz
scummvm-rg350-beba350baa4295b08afa72419e1fb77cadbd274c.tar.bz2
scummvm-rg350-beba350baa4295b08afa72419e1fb77cadbd274c.zip
SCI32: Fix cast warnings
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/video32.cpp6
1 files changed, 3 insertions, 3 deletions
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;