aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2006-11-24 18:24:01 +0000
committerSimon Tatham <anakin@pobox.com>2006-11-24 18:24:01 +0000
commit5666496fc0f71df2ea093976a724739a4ff9978d (patch)
treece4a7e7e726b96add3af3eb07a5deab71f996468
parent3b58225f99ea308b0b81e1e4ba3cbf08cdd85d93 (diff)
downloadpuzzles-5666496fc0f71df2ea093976a724739a4ff9978d.zip
puzzles-5666496fc0f71df2ea093976a724739a4ff9978d.tar.gz
puzzles-5666496fc0f71df2ea093976a724739a4ff9978d.tar.bz2
puzzles-5666496fc0f71df2ea093976a724739a4ff9978d.tar.xz
Fix a couple of rounding errors in Inertia's gem-drawing code which
didn't happen to show up at the default resolution but made the gem slightly skewed at larger sizes. [originally from svn r6919]
-rw-r--r--inertia.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inertia.c b/inertia.c
index 6531b98..15a329f 100644
--- a/inertia.c
+++ b/inertia.c
@@ -1911,12 +1911,12 @@ static void draw_tile(drawing *dr, game_drawstate *ds, int x, int y, int v)
int coords[8];
coords[0] = tx+TILESIZE/2;
- coords[1] = ty+TILESIZE*1/7;
- coords[2] = tx+TILESIZE*1/7;
+ coords[1] = ty+TILESIZE/2-TILESIZE*5/14;
+ coords[2] = tx+TILESIZE/2-TILESIZE*5/14;
coords[3] = ty+TILESIZE/2;
coords[4] = tx+TILESIZE/2;
- coords[5] = ty+TILESIZE-TILESIZE*1/7;
- coords[6] = tx+TILESIZE-TILESIZE*1/7;
+ coords[5] = ty+TILESIZE/2+TILESIZE*5/14;
+ coords[6] = tx+TILESIZE/2+TILESIZE*5/14;
coords[7] = ty+TILESIZE/2;
draw_polygon(dr, coords, 4, COL_GEM, COL_OUTLINE);