aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-09 15:48:18 +0000
committerFilippos Karapetis2007-05-09 15:48:18 +0000
commit24fa689ee09fe7c4e47262278dfb7e24d4458388 (patch)
treeed062cf4ada2bb73a9ba7654ccef347bdde0f67f /engines/agos
parent20bf83a2ce1c19e81cd486b4af3b7b73bd25e510 (diff)
downloadscummvm-rg350-24fa689ee09fe7c4e47262278dfb7e24d4458388.tar.gz
scummvm-rg350-24fa689ee09fe7c4e47262278dfb7e24d4458388.tar.bz2
scummvm-rg350-24fa689ee09fe7c4e47262278dfb7e24d4458388.zip
Fix compilation with MSVC8
svn-id: r26793
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/gfx.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agos/gfx.cpp b/engines/agos/gfx.cpp
index 607c07d2b3..2acf2555d8 100644
--- a/engines/agos/gfx.cpp
+++ b/engines/agos/gfx.cpp
@@ -628,7 +628,7 @@ void AGOSEngine_Simon1::drawImage(VC10_state *state) {
if (getFeatures() & GF_32COLOR)
state->palette = 0xC0;
- uint16 xoffs, yoffs;
+ uint16 xoffs = 0, yoffs = 0;
if (!_oldDrawMethod) {
if (getGameType() == GType_SIMON1 && (_subroutine == 2923 || _subroutine == 2926)) {
// Allow one section of Simon the Sorcerer 1 introduction to be displayed
@@ -796,7 +796,7 @@ void AGOSEngine::drawImage(VC10_state *state) {
if (drawImage_clip(state) == 0)
return;
- uint16 xoffs, yoffs;
+ uint16 xoffs = 0, yoffs = 0;
if (getGameType() == GType_WW) {
if (_windowNum == 4 || (_windowNum >= 10 && _windowNum <= 27)) {
state->surf_addr = _window4BackScn;
@@ -1302,8 +1302,8 @@ void AGOSEngine::setWindowImage(uint16 mode, uint16 vga_res_id) {
uint height = _videoWindows[updateWindow * 4 + 3];
byte *dst = getBackGround() + xoffs + yoffs * _screenWidth;
- byte *src;
- uint srcWidth;
+ byte *src = dst;
+ uint srcWidth = 0;
if (getGameType() == GType_SIMON2) {
src = _window4BackScn + xoffs + yoffs * 320;