Lines Matching full:temp
40 SDL_Surface *temp;
43 temp = SDL_LoadBMP(file);
44 if (temp == NULL) {
48 sprite_w = temp->w;
49 sprite_h = temp->h;
52 if (temp->format->palette) {
53 SDL_SetColorKey(temp, SDL_TRUE, *(Uint8 *) temp->pixels);
55 switch (temp->format->BitsPerPixel) {
57 SDL_SetColorKey(temp, SDL_TRUE,
58 (*(Uint16 *) temp->pixels) & 0x00007FFF);
61 SDL_SetColorKey(temp, SDL_TRUE, *(Uint16 *) temp->pixels);
64 SDL_SetColorKey(temp, SDL_TRUE,
65 (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
68 SDL_SetColorKey(temp, SDL_TRUE, *(Uint32 *) temp->pixels);
74 sprite = SDL_CreateTextureFromSurface(renderer, temp);
77 SDL_FreeSurface(temp);
80 SDL_FreeSurface(temp);