Full screen not working?
BlitzMax Forums/BlitzMax Beginners Area/Full screen not working? The default depth for the graphics command is 0.
I'm confused then... it used to be the default would auto detect if 32 was usable, and if not to use 16. I don't want to force it to use 16 if 32 bit color is available.
There's two ways of approaching this...
1. Default to 16, but allow the user to change it to 24 or 32 later, either via a config file or from an options screen within the game itself.
2. Use the various graphics commands to determine the highest bitdepth available and set it...
I tend to use the second method more than most, but it doesn't matter really as long as the end-user is aware of how to change it if they want to. Using a bitdepth of 32bpp may cause the game to run slow on some low-end systems.
1. Default to 16, but allow the user to change it to 24 or 32 later, either via a config file or from an options screen within the game itself.
2. Use the various graphics commands to determine the highest bitdepth available and set it...
Global scrDepth=32 If Not GraphicsModeExists(scrWidth,scrHeight,scrDepth) Then If GraphicsModeExists(scrWidth,scrHeight,24) Then scrDepth=24 ElseIf GraphicsModeExists(scrWidth,scrHeight,16) Then scrDepth=16 Else RuntimeError "This game requires a 16 bit graphics card or higher." EndIf EndIf Graphics scrWidth,scrHeight,scrDepth
I tend to use the second method more than most, but it doesn't matter really as long as the end-user is aware of how to change it if they want to. Using a bitdepth of 32bpp may cause the game to run slow on some low-end systems.
Thanks.