ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/util.C
(Generate patch)

Comparing libgender/util.C (file contents):
Revision 1.13 by root, Wed Oct 6 06:05:23 2004 UTC vs.
Revision 1.14 by root, Wed Oct 6 09:41:48 2004 UTC

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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines