Lines Matching refs:Image
84 SDL_Surface *Image; in IMG_LoadLBM_RW() local
94 Image = NULL; in IMG_LoadLBM_RW()
253 …if ( ( Image = SDL_CreateRGBSurface( SDL_SWSURFACE, width, bmhd.h, (nbplanes==24 || flagHAM==1)?24… in IMG_LoadLBM_RW()
257 SDL_SetColorKey( Image, SDL_TRUE, bmhd.tcolor ); in IMG_LoadLBM_RW()
270 Image->format->palette->colors[i].r = *ptr++; in IMG_LoadLBM_RW()
271 Image->format->palette->colors[i].g = *ptr++; in IMG_LoadLBM_RW()
272 Image->format->palette->colors[i].b = *ptr++; in IMG_LoadLBM_RW()
286 Image->format->palette->colors[i].r = (*ptr++)/2; in IMG_LoadLBM_RW()
287 Image->format->palette->colors[i].g = (*ptr++)/2; in IMG_LoadLBM_RW()
288 Image->format->palette->colors[i].b = (*ptr++)/2; in IMG_LoadLBM_RW()
299 Image->format->palette->colors[i].r = Image->format->palette->colors[i%nbcolors].r; in IMG_LoadLBM_RW()
300 Image->format->palette->colors[i].g = Image->format->palette->colors[i%nbcolors].g; in IMG_LoadLBM_RW()
301 Image->format->palette->colors[i].b = Image->format->palette->colors[i%nbcolors].b; in IMG_LoadLBM_RW()
304 Image->format->palette->ncolors = nbrcolorsfinal; in IMG_LoadLBM_RW()
369 ptr = (Uint8 *)Image->pixels; in IMG_LoadLBM_RW()
476 if ( Image ) { in IMG_LoadLBM_RW()
477 SDL_FreeSurface( Image ); in IMG_LoadLBM_RW()
478 Image = NULL; in IMG_LoadLBM_RW()
483 return( Image ); in IMG_LoadLBM_RW()