View Single Post
Old 07-22-2005, 05:30 PM   #4 (permalink)
slashdot
Registered User
 
Join Date: Dec 2004
Posts: 43
slashdot is on a distinguished road
AH! I got it to work...

Code:
{
	SDL_Surface *screen;

	printf("Initializing SDL!\n");

	if((SDL_Init(SDL_INIT_VIDEO)==-1))
	{
		printf("Could not initialize SDL: %s\n: SDL_GetError()");
			exit(-1);
	}

	screen = SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE);	
	if ( screen == NULL )
	{
		fprintf(stderr, "Couldn't set 640x480 video mode: %s\n", SDL_GetError());
		exit(1);
	}
Thanx for the help though.. you put in the right direction.

Last edited by Valmont; 07-23-2005 at 09:45 AM.
slashdot is offline   Reply With Quote