Full screen not working?

BlitzMax Forums/BlitzMax Beginners Area/Full screen not working?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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...

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.