diff options
author | Filippos Karapetis | 2013-10-31 04:00:43 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-10-31 04:00:43 +0200 |
commit | 1c8b4d31d0e2076b67c21a566f977345edc44253 (patch) | |
tree | f7e62bd84d393161b0fd06dd3151933c650dcd67 /engines | |
parent | 2ed7d7ab4d4c3de6d13bc87f024ca3ac03603b86 (diff) | |
download | scummvm-rg350-1c8b4d31d0e2076b67c21a566f977345edc44253.tar.gz scummvm-rg350-1c8b4d31d0e2076b67c21a566f977345edc44253.tar.bz2 scummvm-rg350-1c8b4d31d0e2076b67c21a566f977345edc44253.zip |
ZVISION: Silence some false positive warnings in MSVC
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/lever_control.cpp | 6 | ||||
-rw-r--r-- | engines/zvision/video.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/zvision/lever_control.cpp b/engines/zvision/lever_control.cpp index 79049b8fcb..557dec0a83 100644 --- a/engines/zvision/lever_control.cpp +++ b/engines/zvision/lever_control.cpp @@ -377,11 +377,11 @@ void LeverControl::renderFrame(uint frameNumber) { _lastRenderedFrame = frameNumber; } - const uint16 *frameData; + const uint16 *frameData = 0; int x = _animationCoords.left; int y = _animationCoords.top; - int width; - int height; + int width = 0; + int height = 0; if (_fileType == RLF) { // getFrameData() will automatically optimize to getNextFrame() / getPreviousFrame() if it can diff --git a/engines/zvision/video.cpp b/engines/zvision/video.cpp index cd11618e67..894ae3a055 100644 --- a/engines/zvision/video.cpp +++ b/engines/zvision/video.cpp @@ -107,7 +107,7 @@ void ZVision::playVideo(Video::VideoDecoder &videoDecoder, const Common::Rect &d uint16 finalWidth = origWidth * scale; uint16 finalHeight = origHeight * scale; - byte *scaledVideoFrameBuffer; + byte *scaledVideoFrameBuffer = 0; if (scale != 1) { scaledVideoFrameBuffer = new byte[finalWidth * finalHeight * bytesPerPixel]; } |