Fixed potential bug with the game screen resizing.

Programmatical window size changes were ignored.