Hi,

EDIT: Removing "d3d_antialias = 1;" solved the problem, but why?

A got a strange problem - whenever I minimize the game, I get this error when I open it again:


It happens even when I minimize + then maximize the game before the intro movie has ended.

In case it might help, here's my main function:
Code:
function main()
{
	// Setup video modes
	video_mode = 9;
	video_depth = 32;
	video_screen = 1;
	
	// Turn on AA
	d3d_antialias = 1;
	
	// Set background-color
	screen_color.red = 1;
	screen_color.green = 1;
	screen_color.blue = 1;
	
	// Start with 75% volume
	midi_vol = 75;
	
	wait(1);
	
	// Eventually show a splashscreen
	#ifdef USE_SPLASH
	
	// - No need to use a splashscreen for A7 -
	//splashShow();	// Fade in splash screen
	//wait(-3.5);		// Wait a bit
	//splashHide();	// Then hide it again
	//wait(-1);		// Wait till it's gone
	playIntroMovie();	// Play the intro movie
	
	// Wait till the movie is finished
	while(media_playing(MovieHandle))
	{
		// Any key would stop the movie
		if(key_any) {media_stop(MovieHandle);}
		
		wait(1);
	}
	
	#endif
	
	// Play background music
	musicSetActive(musicMenu,false);
	musicDoLoop(musicMenu,50,200);
	
	// Show the mouse
	setMouse(true);
	
	// Set keybindings
	setKeybindings();
	
	// Hide the info panel
	InfoPan_Hide();
	
	// Show the fading panel
	fadeMapShow();
	
	// Load the menu BG
	LoadScene(SCENE_EMPTY);
	
	// Fade in from black
	fadeIn();
	
	// Show the main menu
	MainMenu_Show();
	
	// Place the volume panel in the upper-right corner
	VolumePan.pos_x = screen_size.x - bmap_width(VolumePan.bmap);
	VolumePan.pos_y = 0;
	VolumePan.flags |= SHOW;
}



Last edited by Claus_N; 08/10/09 18:40.