test/testshape.c
changeset 5032 6ccfbaef0c0a
parent 4857 579dabb141ea
child 5123 dc0dfdd58f27
equal deleted inserted replaced
5031:5e3291605ad0 5032:6ccfbaef0c0a
    54 	Uint32 pixelFormat = 0;
    54 	Uint32 pixelFormat = 0;
    55 	int access = 0;
    55 	int access = 0;
    56 	SDL_Rect texture_dimensions;;
    56 	SDL_Rect texture_dimensions;;
    57 
    57 
    58 	if(argc < 2) {
    58 	if(argc < 2) {
    59         	printf("SDL_Shape requires at least one bitmap file as argument.\n");
    59     	printf("SDL_Shape requires at least one bitmap file as argument.\n");
    60         	exit(-1);
    60     	exit(-1);
    61         }
    61     }
    62 	
    62 	
    63 	if(SDL_VideoInit(NULL,0) == -1) {
    63 	if(SDL_VideoInit(NULL,0) == -1) {
    64 		printf("Could not initialize SDL video.\n");
    64 		printf("Could not initialize SDL video.\n");
    65 		exit(-2);
    65 		exit(-2);
    66 	}
    66 	}