aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-28 18:19:48 +0000
committerPaweł Kołodziejski2003-04-28 18:19:48 +0000
commit850ee739afcb2a15d016d78b782fd073bf5b75ca (patch)
tree589e73fcdd9b07673caee88c0892b8fb840a9ce5 /sky
parent12c44ba73d8a3317c47aed7ae172fca6766feab8 (diff)
downloadscummvm-rg350-850ee739afcb2a15d016d78b782fd073bf5b75ca.tar.gz
scummvm-rg350-850ee739afcb2a15d016d78b782fd073bf5b75ca.tar.bz2
scummvm-rg350-850ee739afcb2a15d016d78b782fd073bf5b75ca.zip
fixed two offsets for V2 and two warnings
svn-id: r7185
Diffstat (limited to 'sky')
-rw-r--r--sky/intro.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/sky/intro.cpp b/sky/intro.cpp
index 5350868a7a..4b755d8eb6 100644
--- a/sky/intro.cpp
+++ b/sky/intro.cpp
@@ -478,7 +478,9 @@ void SkyState::showIntroText(uint32 *&cmdPtr) {
//save current screen contents
byte *savePtr = (byte *)_workScreen + startPos;
- for (unsigned int i = 0; i < height; i++) {
+ uint i, j;
+
+ for (i = 0; i < height; i++) {
memcpy(saveBuf, savePtr, width);
saveBuf += width;
savePtr += GAME_SCREEN_WIDTH;
@@ -489,11 +491,11 @@ void SkyState::showIntroText(uint32 *&cmdPtr) {
byte *textBuf = _introTextSpace + sizeof(struct dataFileHeader);
byte *curPos = (byte *)_workScreen + startPos;
- for (unsigned int i = 0; i < height; i++) {
+ for (i = 0; i < height; i++) {
byte *prevPos = curPos;
- for (unsigned int j = 0; j < width; j++) {
+ for (j = 0; j < width; j++) {
uint8 pixel = *textBuf++;
if (pixel)