Win 10 Fullscreen Issues

New to FreeBASIC? Post your questions here.
Post Reply
Halifax
Posts: 65
Joined: Nov 04, 2005 1:30

Win 10 Fullscreen Issues

Post by Halifax »

Howdy, been so long since I posted I forgot all my login info! (and so did my browser, strangely)

Been having some issues moving over to Win 10, got a few things resolved by updating my compiler (oops).

One thing that is still giving me issues is going fullscreen. In this case I press the Maximize box on the window and it shows it go into fullscreen but the window doesn't appear even when I alt-tab to it. After that I'm forced to end the process.

I'm running GFXLib or whatever the default FreeBasic graphics functions are, no OpenGL etc. I'm using ScreenRes 640,480,16,,0. I tried going fullscreen right away but no dice, gives tons of errors and keeps stealing focus so I have to get jiggy to shut it down.

Oddly, a separate execute is able to go fullscreen with no issues, despite the ScreenRes command being identical in both programs AND despite the ScreenRes function being the ONLY function to execute in my main program. (the only notable difference being I #include a .bi file which contains the ScreenRes function.)

Any easy solutions or bad news before I start delving into more tricky tests?
Thanks.

This works:

Code: Select all

ScreenRes 640,480,16,,1
Sleep
End
This doesn't, even when I move this snipped to the FRONT OF MY .BAS file:

Code: Select all

ScreenRes 640,480,16,,1
Sleep
End
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Win 10 Fullscreen Issues

Post by MrSwiss »

Halifax wrote:Any easy solutions or bad news before I start delving ...
Depends, WIN32 sort of OK, WIN64 bad news:
flickering "like Hell" before eventually going "full Screen".
Tried with #Include "fbgfx.bi" ... more nonsense than without ... see comments:

Code: Select all

'#Include Once "fbgfx.bi" = kicks ERROR on: GFX_FULLSCREEN = Variable not declared

'Screen 20, 32,, &h01	' GFX_FULLSCREEN = from: fbgfx.bi
ScreenRes 640, 480, 32,, &h01

Print "Hello World from FreeBASIC"
Print
Print "any key quit's ... "
Sleep
Post Reply