ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.118 by root, Thu Jun 15 15:47:35 2006 UTC vs.
Revision 1.120 by root, Sun Jun 18 19:13:19 2006 UTC

1233 1233
1234 while (data < data_end) 1234 while (data < data_end)
1235 { 1235 {
1236 flags = (data [0] << 8) + data [1]; data += 2; 1236 flags = (data [0] << 8) + data [1]; data += 2;
1237 1237
1238 x = ((flags >> 10) & 63) + self->x; 1238 x = self->x + ((flags >> 10) & 63);
1239 y = ((flags >> 4) & 63) + self->y; 1239 y = self->y + ((flags >> 4) & 63);
1240 1240
1241 cell = map_get_cell (self, x, y); 1241 cell = map_get_cell (self, x, y);
1242 1242
1243 if (flags & 15) 1243 if (flags & 15)
1244 { 1244 {
1341 int vx, vy; 1341 int vx, vy;
1342 int x, y, z; 1342 int x, y, z;
1343 int last_name; 1343 int last_name;
1344 mapface face; 1344 mapface face;
1345 1345
1346 vx = self->x + (self->w - sw + 1) / 2 - shift_x; 1346 vx = self->x + self->w / 2 - sw / 2 - shift_x;
1347 vy = self->y + (self->h - sh + 1) / 2 - shift_y; 1347 vy = self->y + self->h / 2 - sh / 2 - shift_y;
1348 1348
1349 /* 1349 /*
1350 int vx = self->vx = self->w >= sw 1350 int vx = self->vx = self->w >= sw
1351 ? self->x + (self->w - sw) / 2 1351 ? self->x + (self->w - sw) / 2
1352 : MIN (self->x, MAX (self->x + self->w - sw + 1, self->vx)); 1352 : MIN (self->x, MAX (self->x + self->w - sw + 1, self->vx));
1715 const_iv (GL_SCISSOR_TEST), 1715 const_iv (GL_SCISSOR_TEST),
1716 const_iv (GL_DEPTH_TEST), 1716 const_iv (GL_DEPTH_TEST),
1717 const_iv (GL_ALPHA_TEST), 1717 const_iv (GL_ALPHA_TEST),
1718 const_iv (GL_NORMALIZE), 1718 const_iv (GL_NORMALIZE),
1719 const_iv (GL_RESCALE_NORMAL), 1719 const_iv (GL_RESCALE_NORMAL),
1720 const_iv (GL_FRONT),
1721 const_iv (GL_BACK),
1720 const_iv (GL_AND), 1722 const_iv (GL_AND),
1721 const_iv (GL_ONE), 1723 const_iv (GL_ONE),
1722 const_iv (GL_ZERO), 1724 const_iv (GL_ZERO),
1723 const_iv (GL_SRC_ALPHA), 1725 const_iv (GL_SRC_ALPHA),
1724 const_iv (GL_DST_ALPHA), 1726 const_iv (GL_DST_ALPHA),
1846 1848
1847void glPopMatrix () 1849void glPopMatrix ()
1848 1850
1849void glLoadIdentity () 1851void glLoadIdentity ()
1850 1852
1853void glDrawBuffer (int buffer)
1854
1855void glReadBuffer (int buffer)
1856
1851# near_ and far_ are due to microsofts buggy "c" compiler 1857# near_ and far_ are due to microsofts buggy "c" compiler
1852void glFrustum (double left, double right, double bottom, double top, double near_, double far_) 1858void glFrustum (double left, double right, double bottom, double top, double near_, double far_)
1853 1859
1854# near_ and far_ are due to microsofts buggy "c" compiler 1860# near_ and far_ are due to microsofts buggy "c" compiler
1855void glOrtho (double left, double right, double bottom, double top, double near_, double far_) 1861void glOrtho (double left, double right, double bottom, double top, double near_, double far_)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines