Home | History | Annotate | Download | only in test

Lines Matching refs:bg

74     SDL_Surface *bg = SDL_CreateRGBSurface(SDL_SWSURFACE, screen->w, screen->h,
76 if(!bg)
81 SDL_SetColors(bg, screen->format->palette->colors, 0, 256);
84 if(SDL_LockSurface(bg) < 0)
87 Uint8 *p = (Uint8 *)bg->pixels + i * bg->pitch;
94 v += p[-bg->pitch] + 65 - startcol;
99 SDL_UnlockSurface(bg);
100 return(bg);
135 SDL_Surface *bg;
215 bg = make_bg(screen, boatcols); /* make a nice wavy background surface */
218 if(SDL_BlitSurface(bg, NULL, screen, NULL) < 0)
262 if(SDL_BlitSurface(bg, &r, screen, &r) < 0)