Unable to set graphics mode

Blitz3D Forums/Blitz3D Beginners Area/Unable to set graphics mode

sampyxis(Posted 2005) [#1]
Hey all,
Not sure if this is the right forum, but I have a problem.

I was working in blitz3d last night - every thing was fine.

On my code - I set graphics to 600,600 - fine.

When I ran my code this morning ( and it is happening to all the blitz files I try ) - I get an error that says 'Unable to set graphics mode'.

It tries to go to full screen, then comes back, and gives the error message.

The one thing I did before I stopped last night was to create an exe file from one of my files.

Any clues on this?

Thanks!


Shambler(Posted 2005) [#2]
Did it run in fullscreen mode before? If so that is weird =)

I can only think that before you were not using fullscreen mode and now you are.

You shouldn't use graphics 600,600,32,1 but use graphics 600,600,32 ( change 32 to whatever depth you are using)

600,600 is not a valid fullscreen mode on any PC I know of.


sampyxis(Posted 2005) [#3]
Hey Shambler -
No, it always ran in windowed mode -


Gabriel(Posted 2005) [#4]
I'm guessing you had debug mode on last night which opens in a window by default, and now you have debug mode off, which opens in fullscreen by default. You should really specify if you want fullscreen or windowed, as Shambler demonstrated.


puki(Posted 2005) [#5]
Try running this:

; Monitor screen cleaning utility
; designed by "puki" - 29/08/05 

Graphics 640,480,16,1
WaitKey
ClsColor 255,255,255
Cls
WaitKey
End



sampyxis(Posted 2005) [#6]
That's it - I had it on debug mode until I made my exe - and I had been sloppy on setting up the graphics.

Thanks guys!


puki(Posted 2005) [#7]
And he needs to clean his monitor screen - all's well that ends well.

Largeness.


sampyxis(Posted 2005) [#8]
Hey - how'd you know