Write the resolution specified on the command line to the configuration file.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3031 4a71c877-e1ca-e34f-864e-861f7616d084
master
Gerard Krol 2007-12-10 20:08:39 +00:00
parent 9710d4e4a7
commit 6cb9bdcbef
1 changed files with 4 additions and 0 deletions

View File

@ -379,8 +379,12 @@ bool ParseCommandLine(int argc, const char** argv)
abort(); abort();
return FALSE; return FALSE;
} }
// tell the display system of the desired resolution
pie_SetVideoBufferWidth(width); pie_SetVideoBufferWidth(width);
pie_SetVideoBufferHeight(height); pie_SetVideoBufferHeight(height);
// and update the configuration
war_SetWidth(width);
war_SetHeight(height);
break; break;
} }
case CLI_SAVEGAME: case CLI_SAVEGAME: