Lines Matching refs:bitmap
2 /* Simple program: Test bitmap blits */
20 SDL_Surface *bitmap;
23 /* Allocate the bitmap */
24 bitmap = SDL_CreateRGBSurface(SDL_SWSURFACE, w, h, 1, 0, 0, 0, 0);
25 if ( bitmap == NULL ) {
26 fprintf(stderr, "Couldn't allocate bitmap: %s\n",
32 line = (Uint8 *)bitmap->pixels;
47 line += bitmap->pitch;
50 return(bitmap);
56 SDL_Surface *bitmap;
144 /* Load the bitmap */
145 bitmap = LoadXBM(screen, picture_width, picture_height,
147 if ( bitmap == NULL ) {
160 dst.x = event.button.x - bitmap->w/2;
161 dst.y = event.button.y - bitmap->h/2;
162 dst.w = bitmap->w;
163 dst.h = bitmap->h;
164 SDL_BlitSurface(bitmap, NULL,
181 SDL_FreeSurface(bitmap);