Code:
video_switch (var mode,var depth,var screen)



mode - 0 for no change or number of screen resulotion (see video_mode)
depth - always 0.
screen - combination of:
0 = no change ,
1 = fullscreen,
2 = window,
...

for a more detailed description see gamestudio manual (in WED press F1)

example:
Code:
video_switch(0,0,1);