Attempt at fixing flickering on windows (see PR #750)

Based on pull request #750

Unfortunately, I don't have access to a windows machine to test this, but it should limit the redraw area to the rows that are actually changed. (See msdn's documentation on  [RedrawWindow](http://msdn.microsoft.com/en-us/library/aa921313.aspx))