Skip to content

Commit

Permalink
WAGE: Fixed bitmap rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 4, 2016
1 parent 3eeb240 commit e4002d3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions engines/wage/design.cpp
Expand Up @@ -395,11 +395,11 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::ReadStream &in, bool
numBytes -= 10;

int x = 0, y = 0;
while (numBytes) {
while (numBytes > 0) {
int n = in.readSByte();
int count;
int b;
int state;
int state = 0;

numBytes--;

Expand Down Expand Up @@ -433,14 +433,23 @@ void Design::drawBitmap(Graphics::Surface *surface, Common::ReadStream &in, bool
y++;

if (y == h)
return;
break;

x = 0;
break;
}
}

if (y == h)
break;
}

if (y == h)
break;
}

while (numBytes--)
in.readByte();
}

void Design::drawFilledRect(Graphics::Surface *surface, Common::Rect &rect, int color, Patterns &patterns, byte fillType) {
Expand Down

0 comments on commit e4002d3

Please sign in to comment.