MainFrm: Fix initial window size when using non-default mode.

Simplify the code.