Cmd line: Changed -fs-height=<best|nnnn> so it doesn't change the resolution when not full-screen (#876)

. NB. whenever switching back to non-full-screen, then it will restore the default desktop resolution.
. Allow -no-full-screen to be placed before -fs-height=<best|nnnn> (previously it only worked when placed afterwards)
This commit is contained in:
tomcw
2021-05-31 16:09:39 +01:00
parent 0ca972954e
commit f076986c04
6 changed files with 44 additions and 31 deletions
+2
View File
@@ -36,6 +36,8 @@ Win32Frame::Win32Frame()
g_win_fullscreen_scale = 1;
g_win_fullscreen_offsetx = 0;
g_win_fullscreen_offsety = 0;
m_bestWidthForFullScreen = 0;
m_bestHeightForFullScreen = 0;
btnfacebrush = (HBRUSH)0;
btnfacepen = (HPEN)0;