Some fixes for SDL_MaximizeWindow().

Fixes Bugzilla #1441.