Home | History | Annotate | Download | only in video

Lines Matching full:surface

54 	SDL_Surface *surface;
83 surface = NULL;
204 /* Create a compatible surface, note that the colors are RGB ordered */
205 surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
207 if ( surface == NULL ) {
213 palette = (surface->format)->palette;
236 /* Read the surface pixels. Note that the bmp image is upside down */
242 bits = (Uint8 *)surface->pixels+(surface->h*surface->pitch);
253 pad = ((surface->pitch%4) ?
254 (4-(surface->pitch%4)) : 0);
257 while ( bits > (Uint8 *)surface->pixels ) {
258 bits -= surface->pitch;
264 for ( i=0; i<surface->w; ++i ) {
279 if ( SDL_RWread(src, bits, 1, surface->pitch)
280 != surface->pitch ) {
292 for(i = 0; i < surface->w; i++)
299 for(i = 0; i < surface->w; i++)
320 if ( surface ) {
321 SDL_FreeSurface(surface);
323 surface = NULL;
328 return(surface);
335 SDL_Surface *surface;
359 surface = NULL;
363 surface = saveme;
380 surface = saveme;
385 surface = SDL_CreateRGBSurface(SDL_SWSURFACE,
393 if ( surface != NULL ) {
398 if ( SDL_LowerBlit(saveme, &bounds, surface,
400 SDL_FreeSurface(surface);
403 surface = NULL;
409 if ( surface && (SDL_LockSurface(surface) == 0) ) {
410 const int bw = surface->w*surface->format->BytesPerPixel;
429 biWidth = surface->w;
430 biHeight = surface->h;
432 biBitCount = surface->format->BitsPerPixel;
434 biSizeImage = surface->h*surface->pitch;
437 if ( surface->format->palette ) {
438 biClrUsed = surface->format->palette->ncolors;
458 if ( surface->format->palette ) {
462 colors = surface->format->palette->colors;
463 ncolors = surface->format->palette->ncolors;
483 bits = (Uint8 *)surface->pixels+(surface->h*surface->pitch);
485 while ( bits > (Uint8 *)surface->pixels ) {
486 bits -= surface->pitch;
510 SDL_UnlockSurface(surface);
511 if ( surface != saveme ) {
512 SDL_FreeSurface(surface);