QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: Ophelius on August 09, 2020, 09:36:00 pm
-
I have software I made that I use primarily on my 2nd monitor in full screen. When I click away to my main monitor, my program flickers black for 1/4 of sec, and flickers again when clicking back into it. Any way around this? It's not the end of the world, but it's slightly annoying.
Here's how I declare and render:
Init:
Mainloop:
Any help would be appreciated. Thanks
-
_DISPLAY is usually the cure for flickers but that's usually used in a loop and whenever you want to update the _DISPLAY of the screen. You have to remember when using it, that you have to use _DISPLAY every time you want to show some printing or new drawing.
Turn it off with _AUTODISPLAY default mode that draws or prints things immediately.
-
Thank you, but there's no flickering when the program is active, only for a brief moment when clicking away from the program onto my main monitor, and once more when clicking back into it.
I tried this example from the help:
'SLEEP 1
DisplayMenu
init = -1
MS
= _NEWIMAGE(640, MenuHeight
, 32) 'MenuScreen image CLS , &HFFAAAAAA 'background color gray MS_HW
= _COPYIMAGE(MS
, 33) 'create the MenuScreen_HardWare image
and it does the same thing, so there's probably nothing I can do. It doesn't do this with other full screen programs when I click back and forth between monitors, so I thought it might of been how I was rendering. Thanks
-
Yeah when you said 2 monitors I said "Oh boy!"
You might enjoy Options > Code Layout > Indent Subs and Functions.