QB64 Phoenix Edition v3.5.0 Released!
#67
(01-14-2023, 09:04 PM)Fantomas Wrote: Hi,

It seems that since this new version v3.5.0, _FULLSCREEN don't work ?
It works fine in v3.4.1, i just try with the source code of my game, and ... no fullscreen ?

thanks Smile

update:

in my source code i put a "_ScreenMove _Middle" before "_fullscreen", if i delete "_ScreenMove _Middle", fullscreen works fine

Testing it, it appears that _SCREENMOVE takes a moment to process.  (Our GL Window handling in a separate thread than some of the other stuff.)  What's happening here is that you're going into _FULLSCREEN mode and *then* the screenmove is taking place and knocking it out of fullscreen.

Try this for an example:
Code: (Select All)
_SCREENMOVE _MIDDLE
SLEEP
_FULLSCREEN
SLEEP

As is, it works fine, and you have to press some key to swap to fullscreen and then to end the program.

Take that SLEEP out between the screenmove and the fullscreen, and you'll see it flicker very quickly into fullscreen mode, and then drop it to move back into the middle of the screen.

Simplest solution is to either not worry with screenmove, as it's not really necessary with fullscreen, or else add a small delay in between the two commands so that the screenmove will process and finish before the fullscreen triggers.

_SCREENMOVE _MIDDLE
_DELAY .25
_FULLSCREEN

Something similar to the above would probably be all you'd need for things to flow and work as you'd expect them to.  Smile
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.5.0 Released! - by SMcNeill - 01-14-2023, 11:37 PM



Users browsing this thread: 33 Guest(s)