aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/bitmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/bitmap.cpp')
-rw-r--r--engines/cge/bitmap.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp
index b528b5578d..90c6a02059 100644
--- a/engines/cge/bitmap.cpp
+++ b/engines/cge/bitmap.cpp
@@ -194,18 +194,18 @@ BMP_PTR BITMAP::Code(void) {
int bpl;
if (V) { // 2nd pass - fill the hide table
- for (i = 0; i < H; i ++) {
+ for (i = 0; i < H; i++) {
B[i].skip = 0xFFFF;
B[i].hide = 0x0000;
}
}
- for (bpl = 0; bpl < 4; bpl ++) { // once per each bitplane
+ for (bpl = 0; bpl < 4; bpl++) { // once per each bitplane
uint8 *bm = M;
bool skip = (bm[bpl] == TRANS);
uint16 j;
cnt = 0;
- for (i = 0; i < H; i ++) { // once per each line
+ for (i = 0; i < H; i++) { // once per each line
uint8 pix;
for (j = bpl; j < W; j += 4) {
pix = bm[j];
@@ -274,7 +274,7 @@ BMP_PTR BITMAP::Code(void) {
B = (HideDesc *)(V + sizV);
}
cnt = 0;
- for (i = 0; i < H; i ++) {
+ for (i = 0; i < H; i++) {
if (B[i].skip == 0xFFFF) { // whole line is skipped
B[i].skip = (cnt + SCR_WID) >> 2;
cnt = 0;
@@ -326,7 +326,7 @@ bool BITMAP::SolidAt(int x, int y) {
while (true) {
uint16 w, t;
- w = * (uint16 *) m;
+ w = *(uint16 *) m;
m += 2;
t = w & 0xC000;
w &= 0x3FFF;