Home | History | Annotate | Download | only in test

Lines Matching refs:temp

43     SDL_Surface *temp;
47 temp = SDL_LoadBMP(file);
48 if (temp == NULL) {
55 if (temp->format->palette) {
56 SDL_SetColorKey(temp, SDL_TRUE, *(Uint8 *) temp->pixels);
58 switch (temp->format->BitsPerPixel) {
60 SDL_SetColorKey(temp, SDL_TRUE,
61 (*(Uint16 *) temp->pixels) & 0x00007FFF);
64 SDL_SetColorKey(temp, SDL_TRUE, *(Uint16 *) temp->pixels);
67 SDL_SetColorKey(temp, SDL_TRUE,
68 (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
71 SDL_SetColorKey(temp, SDL_TRUE, *(Uint32 *) temp->pixels);
78 texture = SDL_CreateTextureFromSurface(renderer, temp);
81 SDL_FreeSurface(temp);
84 SDL_FreeSurface(temp);