Fix compile mistakes

This commit is contained in:
Duncan Frost 2014-08-07 17:12:27 +01:00
parent ca38d60b6f
commit 6ec15b240b
1 changed files with 40 additions and 39 deletions

View File

@ -159,46 +159,47 @@ void sub_0x684027(int left, int top, int width, int height, int ebp, int edi, in
//esi = RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_DPI,uint32); //esi = RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_DPI,uint32);
edi += 0xEDF850; edi += 0xEDF850;
for( ; height != 0; height--){ for (; height != 0; height--){
//0x6840A4 //0x6840A4
int al = *((uint8*)(ecx*2+ebp)); int al = *((uint8*)(ecx * 2 + ebp));
if (al == 0xFF) continue; if (al == 0xFF) continue;
if (RCT2_GLOBAL(0x9AC00C,uint32) > 0x1F38) continue; if (RCT2_GLOBAL(0x9AC00C, uint32) > 0x1F38) continue;
//push ebx //push ebx
//push ecx //push ecx
int _ebx = ebx; int _ebx = ebx;
int _ecx = ecx; int _ecx = ecx;
eax -= RCT2_GLOBAL(0xEE7870,uint32); eax -= RCT2_GLOBAL(0xEE7870, uint32);
edx = width; edx = width;
eax &= RCT2_GLOBAL(0xEE7868,uint32); eax &= RCT2_GLOBAL(0xEE7868, uint32);
edx += ebx; edx += ebx;
ebx += eax; ebx += eax;
if (ebx >= edx)continue; if (ebx >= edx)continue;
int ah = *((uint8*)(ecx*2+ebp+1)); int ah = *((uint8*)(ecx * 2 + ebp + 1));
ecx = RCT2_GLOBAL(0xEE7864,uint32); ecx = RCT2_GLOBAL(0xEE7864, uint32);
//inner loop //inner loop
while(ebx < edx){ while (ebx < edx){
al = ah; al = ah;
int old_al = al; int old_al = al;
al = dpi->bits[ebx]; al = dpi->bits[ebx];
dpi->bits[ebx] = old_al; dpi->bits[ebx] = old_al;
RCT2_GLOBAL(0x9AC00C,uint32)++; RCT2_GLOBAL(0x9AC00C, uint32)++;
ebx <<= 8; ebx <<= 8;
ebx |= al; ebx |= al;
*(uint32*)edi = ebx; *(uint32*)edi = ebx;
ebx >>= 8; ebx >>= 8;
edi += 4; edi += 4;
ebx += ecx; ebx += ecx;
}
//pop ecx
//pop ebx
ecx = _ecx;
ebx = _ebx;
ecx++;
ebx += dpi->pitch + dpi->width;
ecx &= RCT2_GLOBAL(0xEE786C, uint32);
} }
//pop ecx
//pop ebx
ecx = _ecx;
ebx = _ebx;
ecx++;
ebx += dpi->pitch + dpi->width;
ecx &= RCT2_GLOBAL(0xEE786C,uint32);
} }
/** /**