Resize window correctly in widescreen mode