… | |
… | |
278 | SDL_Rect area; |
278 | SDL_Rect area; |
279 | Uint32 saved_flags; |
279 | Uint32 saved_flags; |
280 | Uint8 saved_alpha; |
280 | Uint8 saved_alpha; |
281 | |
281 | |
282 | /* Use the surface width and height expanded to powers of 2 */ |
282 | /* Use the surface width and height expanded to powers of 2 */ |
|
|
283 | //w = power_of_two (surface->w); |
|
|
284 | //h = power_of_two (surface->h); |
283 | w = power_of_two (surface->w); |
285 | w = power_of_two (surface->w); |
284 | h = power_of_two (surface->h); |
286 | h = power_of_two (surface->h); |
285 | texcoord[0] = 0.0f; /* Min X */ |
287 | texcoord[0] = 0.0f; /* Min X */ |
286 | texcoord[1] = 0.0f; /* Min Y */ |
288 | texcoord[1] = 0.0f; /* Min Y */ |
287 | texcoord[2] = (GLfloat) surface->w / w; /* Max X */ |
289 | texcoord[2] = (GLfloat) surface->w / w; /* Max X */ |