|
|
|
|
@ -527,7 +527,7 @@ void DrawArt(int screenX, int screenY, Art *art, int nFrame, int drawW)
|
|
|
|
|
BYTE *dst = &gpBuffer[screenX + 64 + (screenY + 160) * BUFFER_WIDTH]; |
|
|
|
|
drawW = drawW ? drawW : art->width; |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < art->height && i + screenY < SCREEN_HEIGHT; i++, src += art->width, dst += ROW_PITCH) { |
|
|
|
|
for (int i = 0; i < art->height && i + screenY < SCREEN_HEIGHT; i++, src += art->width, dst += BUFFER_WIDTH) { |
|
|
|
|
for (int j = 0; j < art->width && j + screenX < SCREEN_WIDTH; j++) { |
|
|
|
|
if (j < drawW && (!art->masked || src[j] != art->mask)) |
|
|
|
|
dst[j] = src[j]; |
|
|
|
|
|