Fakefullscreen and getting rid of it again

Discuss any general programming issues here
Post Reply
zylesea
Posts: 227
Joined: Tue Feb 16, 2010 12:50 am
Location: Westfalen/Germany
Contact:

Fakefullscreen and getting rid of it again

Post 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?
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Fakefullscreen and getting rid of it again

Post 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.
Post Reply