Fixed double buffer problems causing jittery screen.