Skip to content

Commit

Permalink
WAGE: Fix pattern filling
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent 27adb22 commit cd84abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wage/design.cpp
Expand Up @@ -127,7 +127,7 @@ void drawPixel(int x, int y, int color, void *data) {

if (x >= 0 && x < p->surface->w && y >= 0 && y < p->surface->h) {
*((byte *)p->surface->getBasePtr(x, y)) =
(pat[(y - p->y0) % 8] & (1 << (7 - (x - p->x0) % 8))) ?
(pat[y % 8] & (1 << (7 - x % 8))) ?
color : kColorWhite;
}
}
Expand Down

0 comments on commit cd84abb

Please sign in to comment.