summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e73ca44)
subsequent move animation began during them. Tracked this to
overenthusiastic use of clip() and fixed it.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5766
cda61777-01e9-0310-a592-
d414129be87e
int coords[8];
char str[40];
int coords[8];
char str[40];
+ /*
+ * If we've been passed a rotation region but we're drawing a
+ * tile which is outside it, we must draw it normally. This can
+ * occur if we're cleaning up after a completion flash while a
+ * new move is also being made.
+ */
+ if (rot && (x < rot->cx || y < rot->cy ||
+ x >= rot->cx+rot->cw || y > rot->cy+rot->ch))
+ rot = NULL;
+
if (rot)
clip(fe, rot->cx, rot->cy, rot->cw, rot->ch);
if (rot)
clip(fe, rot->cx, rot->cy, rot->cw, rot->ch);