If WindowWidth or WindowHeight are <= 0, fix them.