win32: save the "not maximized" window size

also fix the window start up position

see http://pulkomandy.tk/projects/GrafX2/ticket/102
This commit is contained in:
Thomas Bernard
2019-05-21 20:45:21 +02:00
parent 31d3719f26
commit 2d645edbc0
8 changed files with 99 additions and 40 deletions

View File

@@ -792,9 +792,9 @@ int Load_INI(T_Config * conf)
if (!Load_INI_get_values (file,buffer,"Default_window_size",2,values))
{
if ((values[0]>=320))
Video_mode[0].Width = values[0];
Default_window_width = Video_mode[0].Width = values[0];
if ((values[1]>=200))
Video_mode[0].Height = values[1];
Default_window_height = Video_mode[0].Height = values[1];
}
}