Nope, that can't be it, cause my original code was as follows:
Where the if depth=0 is just me telling it I don't want a specific depth, I want whatever th ebest on the graphics card has.
So on his card, the above code would set Depth to 16. And that would be used when setting the fullscreen graphics mode.
So unless his card can't do 800x600 at 16bit color, the card failing to report the bit depth for that mode should have no effect.
My new code on the other hand, the version I asked Big10p to check out above, also checks for the 16bit mode. So that would fail to find a mode, and it would just not let you switch, rather than crashing.
Maybe there is an issue in the BlitzMAx code itself. Maybe it itself checks to see if the mode exists before trying to set it. But that should not cause a crash. My code checks to see if the return value is Null or not and if it is Null, goes back to windowed mode.
If Depth = 0 Depth = 16 If GraphicsModeExists(Width, Height, 24) Then Depth = 24 If GraphicsModeExists(Width, Height, 32) Then Depth = 32 EndIf
Where the if depth=0 is just me telling it I don't want a specific depth, I want whatever th ebest on the graphics card has.
So on his card, the above code would set Depth to 16. And that would be used when setting the fullscreen graphics mode.
So unless his card can't do 800x600 at 16bit color, the card failing to report the bit depth for that mode should have no effect.
My new code on the other hand, the version I asked Big10p to check out above, also checks for the 16bit mode. So that would fail to find a mode, and it would just not let you switch, rather than crashing.
Maybe there is an issue in the BlitzMAx code itself. Maybe it itself checks to see if the mode exists before trying to set it. But that should not cause a crash. My code checks to see if the return value is Null or not and if it is Null, goes back to windowed mode.