I am trying to start an application in window mode, but unfortunately are not able to avoid some flickering between WINSTART window and regular application.
The application window shall have the same size as the desktop, to fake a fullscreen application.
The best results I achieved with a somehow circuitous solution:

function main()
{
...
video_screen = 1;
screen_size.x = sys_metrics( SM_CXSCREEN );
screen_size.y = sys_metrics( SM_CYSCREEN );

wait( 1 );
video_set( 0, 0, 0, 2 );
video_window( NULL , vector( ( screen_size.x ), ( screen_size.y ), 0), 1, NULL );

level_load( sLevel );
wait( 1 );
...
}

Has anybody an idea to avoid this flickering?