~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The cube was being drawn slightly differently on the top and left
[sgt/puzzles]
/
cube.c
diff --git
a/cube.c
b/cube.c
index
9cb359e
..
e779068
100644
(file)
--- a/
cube.c
+++ b/
cube.c
@@
-1294,8
+1294,8
@@
void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate,
}
for (j = 0; j < poly->order; j++) {
}
for (j = 0; j < poly->order; j++) {
- coords[j*2] = (int)(points[j*2] * GRID_SCALE) + ds->ox;
- coords[j*2+1] = (int)(points[j*2+1] * GRID_SCALE) + ds->oy;
+ coords[j*2] = (int)
floor
(points[j*2] * GRID_SCALE) + ds->ox;
+ coords[j*2+1] = (int)
floor
(points[j*2+1] * GRID_SCALE) + ds->oy;
}
/*
}
/*