Page 1 of 1

Fakefullscreen and getting rid of it again

Posted: Sun Feb 14, 2016 10:39 pm
by zylesea
The fakefullscreen thing is pretty nice and handy. But how to get rid of it again?

Code: Select all

@DISPLAY 1, { Title = "Window 1", width=800, height=600, color= #WHITE }
@DISPLAY 2, { Title = "Window 2", width=800, height=600, hidden=True, mode="fakefullscreen",backfill={type="gradient", startcolor=#GRAY, endcolor=$ccccff}, Color= #WHITE }
SelectDisplay(1)
(...)
OpenDisplay(2)   
Selectdisplay(2)
(...some stuff...)  
SelectDisplay(1)
FreeDisplay(2)
The above opens a window, then switches to window2 in fakefullscreen mode, but when closing window 2 again I cannot see the underlying stuff, but it keeps staying in fakefullscreen mode.
Am I doing somethig wrong, is it a bug or a feature?

Re: Fakefullscreen and getting rid of it again

Posted: Mon Feb 15, 2016 9:03 pm
by airsoftsoftwair
Looks like a bug. I'll fix it. As a workaround, just call CloseDisplay(2) before FreeDisplay(2) and the fakefullscreen mode should go away.