aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Persson2005-07-10 15:25:30 +0000
committerLars Persson2005-07-10 15:25:30 +0000
commitd1e58e603621fe2cc36b6124111b6e4a3ef09213 (patch)
treef653ef0275f96764f2cb8b5fa224978464f65a0f
parent4ea61fb13e0c7cf8d7ed7db87b912eae402fb3ac (diff)
downloadscummvm-rg350-d1e58e603621fe2cc36b6124111b6e4a3ef09213.tar.gz
scummvm-rg350-d1e58e603621fe2cc36b6124111b6e4a3ef09213.tar.bz2
scummvm-rg350-d1e58e603621fe2cc36b6124111b6e4a3ef09213.zip
Updated interface.cpp so it compiles for VC6 without errors. Moved loop variable declaration
svn-id: r18532
-rw-r--r--saga/interface.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp
index bd89e58b69..855ded1cf2 100644
--- a/saga/interface.cpp
+++ b/saga/interface.cpp
@@ -2015,6 +2015,7 @@ void Interface::loadState(Common::InSaveFile *in) {
}
void Interface::mapPanelShow() {
+ int i;
byte *resource;
size_t resourceLength, imageLength;
Surface *backBuffer;
@@ -2038,7 +2039,7 @@ void Interface::mapPanelShow() {
_vm->_gfx->getCurrentPal(_mapSavedPal);
- for (int i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6 ; i++) {
_vm->_gfx->palToBlack(_mapSavedPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2049,7 +2050,7 @@ void Interface::mapPanelShow() {
_vm->decodeBGImage(resource, resourceLength, &image, &imageLength, &imageWidth, &imageHeight);
pal = _vm->getImagePal(resource, resourceLength);
- for (int i = 0; i < PAL_ENTRIES; i++) {
+ for (i = 0; i < PAL_ENTRIES; i++) {
cPal[i].red = *pal++;
cPal[i].green = *pal++;
cPal[i].blue = *pal++;
@@ -2061,7 +2062,7 @@ void Interface::mapPanelShow() {
backBuffer->blit(rect, image);
// Evil Evil
- for (int i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6 ; i++) {
_vm->_gfx->blackToPal(cPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2077,10 +2078,11 @@ void Interface::mapPanelShow() {
void Interface::mapPanelClean() {
PalEntry pal[PAL_ENTRIES];
+ int i;
_vm->_gfx->getCurrentPal(pal);
- for (int i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6 ; i++) {
_vm->_gfx->palToBlack(pal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2092,7 +2094,7 @@ void Interface::mapPanelClean() {
_vm->_gfx->showCursor(true);
_vm->_render->drawScene();
- for (int i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6 ; i++) {
_vm->_gfx->blackToPal(_mapSavedPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);