Home | History | Annotate | Download | only in test

Lines Matching refs:temp

45     SDL_Surface *temp;
49 temp = SDL_LoadBMP(file);
50 if (temp == NULL) {
57 if (temp->format->palette) {
58 SDL_SetColorKey(temp, SDL_TRUE, *(Uint8 *) temp->pixels);
60 switch (temp->format->BitsPerPixel) {
62 SDL_SetColorKey(temp, SDL_TRUE,
63 (*(Uint16 *) temp->pixels) & 0x00007FFF);
66 SDL_SetColorKey(temp, SDL_TRUE, *(Uint16 *) temp->pixels);
69 SDL_SetColorKey(temp, SDL_TRUE,
70 (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
73 SDL_SetColorKey(temp, SDL_TRUE, *(Uint32 *) temp->pixels);
80 texture = SDL_CreateTextureFromSurface(renderer, temp);
83 SDL_FreeSurface(temp);
86 SDL_FreeSurface(temp);