Fixed bug where only half the window was being used to draw.