Windowed mode command line option

March 14, 2008

When v1.13 introduced windowed mode it came with the SCREEN_MODE_WINDOWED option in the ja2.ini file. There is, however, another way to toggle between windowed and full screen mode.

Appending the /WINDOW switch to the program call overrides that ini option and starts the game in windowed mode. Accordingly, the /FULLSCREEN switch creates a full screen window ignoring what you have set your ini to.

Keep in mind, though, that windowed mode still only works if you have set your desktop environment color depth to 16bpp.

For the sake of completeness, there is a last command line option /NOSOUND which obviously disables the sound. May come in handy when debugging the code or developing a modification.