window width and height swapped

The height and width of the window created were swapped.