Home | History | Annotate | Download | only in test

Lines Matching refs:temp

52     SDL_Surface *temp;
56 temp = SDL_LoadBMP(file);
57 if (temp == NULL) {
64 if (temp->format->palette) {
65 SDL_SetColorKey(temp, SDL_TRUE, *(Uint8 *) temp->pixels);
67 switch (temp->format->BitsPerPixel) {
69 SDL_SetColorKey(temp, SDL_TRUE,
70 (*(Uint16 *) temp->pixels) & 0x00007FFF);
73 SDL_SetColorKey(temp, SDL_TRUE, *(Uint16 *) temp->pixels);
76 SDL_SetColorKey(temp, SDL_TRUE,
77 (*(Uint32 *) temp->pixels) & 0x00FFFFFF);
80 SDL_SetColorKey(temp, SDL_TRUE, *(Uint32 *) temp->pixels);
87 texture = SDL_CreateTextureFromSurface(renderer, temp);
90 SDL_FreeSurface(temp);
93 SDL_FreeSurface(temp);
113 char mapping[4096], temp[4096];
181 SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joystick), temp, SDL_arraysize(temp));
183 temp, name ? name : "Unknown Joystick", SDL_GetPlatform());
245 SDL_snprintf(temp, SDL_arraysize(temp), ":a%u,", event.jaxis.axis);
246 SDL_strlcat(mapping, temp, SDL_arraysize(mapping));
263 SDL_snprintf(temp, SDL_arraysize(temp), ":h%u.%u,", event.jhat.hat, event.jhat.value );
264 SDL_strlcat(mapping, temp, SDL_arraysize(mapping));
280 SDL_snprintf(temp, SDL_arraysize(temp), ":b%u,", event.jbutton.button);
281 SDL_strlcat(mapping, temp, SDL_arraysize(mapping));