remember window state
This commit is contained in:
parent
8d6e00d263
commit
c8c86f8282
2 changed files with 11 additions and 5 deletions
|
@ -120,7 +120,7 @@ void Settings_Load()
|
|||
}
|
||||
}
|
||||
|
||||
void Settings_SaveWindowRect(RECT *lpRect)
|
||||
void Settings_Save(RECT *lpRect, int windowState)
|
||||
{
|
||||
char buf[16];
|
||||
|
||||
|
@ -147,6 +147,11 @@ void Settings_SaveWindowRect(RECT *lpRect)
|
|||
sprintf(buf, "%ld", lpRect->top);
|
||||
WritePrivateProfileString(ProcessFileName, "posY", buf, SettingsIniPath);
|
||||
}
|
||||
|
||||
if (windowState != -1)
|
||||
{
|
||||
WritePrivateProfileString(ProcessFileName, "windowed", windowState ? "true" : "false", SettingsIniPath);
|
||||
}
|
||||
}
|
||||
|
||||
static void CreateSettingsIni()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue