Added quick&dirty window resize handling.