DRAW_TILE_BODY breaks Windows build? #442

This commit is contained in:
BADIM-PC\Vadim 2017-12-06 10:35:43 +03:00
parent 19247d0e35
commit 37d93c2808
1 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ static void drawRectBorder(tic_machine* machine, s32 x, s32 y, s32 width, s32 he
drawVLine(machine, x + width - 1, y, height, color);
}
#define DRAW_TILE_BODY(INDEX_EXPR) {\
#define DRAW_TILE_BODY(INDEX_EXPR) do {\
for(s32 py=sy; py < ey; py++, y++) \
{ \
s32 xx = x; \
@ -255,7 +255,7 @@ static void drawRectBorder(tic_machine* machine, s32 x, s32 y, s32 width, s32 he
if(color != 255) machine->state.setpix(&machine->memory, xx, y, color); \
} \
} \
}
} while(0)
#define REVERT(X) (TIC_SPRITESIZE - 1 - (X))
#define INDEX_XY(X, Y) ((Y) * TIC_SPRITESIZE + (X))