ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/rendercache.c
(Generate patch)

Comparing cf.schmorp.de/Deliantra-Client/rendercache.c (file contents):
Revision 1.5 by root, Sun Aug 12 08:49:51 2007 UTC vs.
Revision 1.6 by root, Sun Aug 12 12:14:01 2007 UTC

81 U8 *c; 81 U8 *c;
82 STRLEN len = SvCUR (arr); 82 STRLEN len = SvCUR (arr);
83 SvGROW (arr, len + 2 * 2 + 1 * 4); 83 SvGROW (arr, len + 2 * 2 + 1 * 4);
84 c = (U8 *)SvEND (arr); 84 c = (U8 *)SvEND (arr);
85 85
86 x += w;
87 y += h;
88
86 *c++ = u; 89 *c++ = u;
87 *c++ = v; 90 *c++ = v;
88 *c++ = w; 91 *c++ = w;
89 *c++ = h; 92 *c++ = h;
90 93
149 h = *c++; 152 h = *c++;
150 153
151 x = *c++; if (x > 0x7f) x = ((x & 0x7f) << 7) | *c++; 154 x = *c++; if (x > 0x7f) x = ((x & 0x7f) << 7) | *c++;
152 y = *c++; if (y > 0x7f) y = ((y & 0x7f) << 7) | *c++; 155 y = *c++; if (y > 0x7f) y = ((y & 0x7f) << 7) | *c++;
153 156
157 x -= w;
158 y -= h;
159
154 glTexCoord2f ( u * (1.f / TC_WIDTH), v * (1.f / TC_HEIGHT)); glVertex2i (x , y ); 160 glTexCoord2f ( u * (1.f / TC_WIDTH), v * (1.f / TC_HEIGHT)); glVertex2i (x , y );
155 glTexCoord2f ((u + w) * (1.f / TC_WIDTH), v * (1.f / TC_HEIGHT)); glVertex2i (x + w, y ); 161 glTexCoord2f ((u + w) * (1.f / TC_WIDTH), v * (1.f / TC_HEIGHT)); glVertex2i (x + w, y );
156 glTexCoord2f ((u + w) * (1.f / TC_WIDTH), (v + h) * (1.f / TC_HEIGHT)); glVertex2i (x + w, y + h); 162 glTexCoord2f ((u + w) * (1.f / TC_WIDTH), (v + h) * (1.f / TC_HEIGHT)); glVertex2i (x + w, y + h);
157 glTexCoord2f ( u * (1.f / TC_WIDTH), (v + h) * (1.f / TC_HEIGHT)); glVertex2i (x , y + h); 163 glTexCoord2f ( u * (1.f / TC_WIDTH), (v + h) * (1.f / TC_HEIGHT)); glVertex2i (x , y + h);
158 } 164 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines