Fix function that tests if window is shrunk
Don't resize windows when the viewport hasn't changed

fixes #24
Remove unnecessary Clear()

this should improve performance and reduce flickering
seen by some when switching windows
Don't redraw while setting the viewport
Version 0.3.1