ccdemos/realtime.cc
branchpyrit
changeset 23 7e258561a690
parent 22 76b7bd51d64a
child 37 5f954c0d34fc
equal deleted inserted replaced
22:76b7bd51d64a 23:7e258561a690
    51 		exit(1);
    51 		exit(1);
    52 	}
    52 	}
    53 
    53 
    54 	atexit(SDL_Quit);
    54 	atexit(SDL_Quit);
    55 
    55 
    56 	screen = SDL_SetVideoMode(w, h, 32, SDL_HWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE);
    56 	screen = SDL_SetVideoMode(w, h, 32, SDL_SWSURFACE|SDL_DOUBLEBUF|SDL_RESIZABLE);
    57 	if ( screen == NULL ) {
    57 	if ( screen == NULL ) {
    58 		fprintf(stderr, "Unable to set video mode: %s\n", SDL_GetError());
    58 		fprintf(stderr, "Unable to set video mode: %s\n", SDL_GetError());
    59 		exit(1);
    59 		exit(1);
    60 	}
    60 	}
    61 
    61