Compare commits

...

2 Commits

Author SHA1 Message Date
Stefan Wessels 52e003537e
Merge pull request #12 from oliverschmidt/patch-1
Avoid undefined memory read access.
2024-01-10 20:17:30 +00:00
Oliver Schmidt 8c881e847e
Avoid undefined memory read access. 2024-01-10 01:51:03 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -218,7 +218,11 @@ void plat_DrawSquare(char position)
inv = blackWhite ^ (piece & PIECE_WHITE) != 0;
}
else
{
rop = blackWhite ? ROP_WHITE : ROP_BLACK;
inv = 0;
piece = 1;
}
hires_Draw(2+x*BOARD_PIECE_WIDTH,14+y*BOARD_PIECE_HEIGHT,
BOARD_PIECE_WIDTH,BOARD_PIECE_HEIGHT,rop,