mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Added new, optional JA2.INI parameter to select windowed mode instead of Fullscreen ([Ja2 Setting] SCREEN_MODE_WINDOWED=1). To keep Fullscreen, simply omit this swith or set it to 0. Also, added a cmdline switch for the same effect, but with higher prio. /FULLSCREEN overwrites INI/SCREEN_MODE_WINDOWED=1 while /WINDOW overrides INI/SCREEN_MODE_WINDOWED=0.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@734 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+13
-2
@@ -6,8 +6,19 @@
|
||||
#endif
|
||||
|
||||
int iResolution; // INI file
|
||||
// WANNE
|
||||
int iScreenMode; // INI file (Windowed or Fullscreen) // REPLACE all defines WINDOWED_MODE with this variable
|
||||
/* WANNE, Sgt.Kolja
|
||||
* INI file (Windowed or Fullscreen)
|
||||
* REPLACE all defines WINDOWED_MODE with this variable
|
||||
* this is the LAST occurence of WINDOWED_MODE !
|
||||
* If (and only if) optionally set, we got a preset of
|
||||
* Windowed Screen. But this can be overloaded by INI or CmdLine
|
||||
*/
|
||||
#ifdef WINDOWED_MODE
|
||||
int iScreenMode = 1; /* 1 for Windowed, 0 for Fullscreen */
|
||||
#else
|
||||
int iScreenMode = 0; /* 0 for Fullscreen */
|
||||
#endif
|
||||
BOOL bScreenModeCmdLine = FALSE;
|
||||
|
||||
int SCREEN_WIDTH;
|
||||
int SCREEN_HEIGHT;
|
||||
|
||||
Reference in New Issue
Block a user