1
0
Fork 0
forked from len0rd/rockbox

puzzles: fix flag drawing in Mines

Yet another workaround to accomodate our polygon
drawing "algorithm" (if you can call it that).
This commit is contained in:
Franklin Wei 2017-07-26 22:16:27 -04:00 committed by Franklin Wei
parent 68c5f93ea6
commit 403d011bd8

View file

@ -2867,12 +2867,12 @@ static void draw_tile(drawing *dr, game_drawstate *ds,
coords[(n)*2+0] = x + (int)(TILE_SIZE * (dx)); \
coords[(n)*2+1] = y + (int)(TILE_SIZE * (dy)); \
} while (0)
SETCOORD(0, 0.6F, 0.35F);
SETCOORD(1, 0.6F, 0.7F);
SETCOORD(2, 0.8F, 0.8F);
SETCOORD(3, 0.25F, 0.8F);
SETCOORD(4, 0.55F, 0.7F);
SETCOORD(5, 0.55F, 0.35F);
SETCOORD(0, 0.6F, 0.7F);
SETCOORD(1, 0.8F, 0.8F);
SETCOORD(2, 0.25F, 0.8F);
SETCOORD(3, 0.55F, 0.7F);
SETCOORD(4, 0.55F, 0.35F);
SETCOORD(5, 0.6F, 0.35F);
draw_polygon(dr, coords, 6, COL_FLAGBASE, COL_FLAGBASE);
SETCOORD(0, 0.6F, 0.2F);