Rework the Loopy grid drawing algorithm so that it doesn't assume when
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 2 Apr 2011 15:19:29 +0000 (15:19 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 2 Apr 2011 15:19:29 +0000 (15:19 +0000)
commit1463f9f18b6e628e39b83adb445a64333b56ed57
treedb8fc05e759c3ed1784f9f6671e270ef93eba0f8
parente0936bbdf14b05964b4a0929012d042a4d554ba0
Rework the Loopy grid drawing algorithm so that it doesn't assume when
it clears a clipping region that it knows what features will need
redrawing in that region. Instead, I've moved all the clip/unclip/draw
functionality out into a game_redraw_in_rect() function which checks
_everything_ on the grid to see if it lies in the region.

As far as I can tell the effect only shows up in grid types that
aren't checked in, but it makes the code look nicer too.

(It would be nicer still to avoid the brute-force loop over the whole
grid checking it against the bounding box, particularly when we're
drawing in multiple bounding boxes. But this will do for the moment.)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9138 cda61777-01e9-0310-a592-d414129be87e
loopy.c