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.147 by root, Sat Aug 19 03:57:08 2006 UTC vs.
Revision 1.148 by root, Sat Aug 19 03:57:25 2006 UTC

1500 if (cell->stat_hp) 1500 if (cell->stat_hp)
1501 { 1501 {
1502 int width = cell->stat_width * 32; 1502 int width = cell->stat_width * 32;
1503 int thick = sh / 28 + 1 + cell->stat_width; 1503 int thick = sh / 28 + 1 + cell->stat_width;
1504 1504
1505 glColor4ub (0, 0, 0, 128); 1505 glColor4ub (0, 0, 0, 127);
1506 glRectf (px + 1, py, 1506 glRectf (px + 1, py,
1507 px + width - 1, py + thick + 2); 1507 px + width - 1, py + thick + 2);
1508 1508
1509 glColor4ub (cell->stat_hp, 255 - cell->stat_hp, 0, 192); 1509 glColor4ub (cell->stat_hp, 255 - cell->stat_hp, 0, 255);
1510 glRectf (px + 2, 1510 glRectf (px + 2,
1511 py + 1, 1511 py + 1,
1512 px + width - 2 - cell->stat_hp * (width - 4) / 255, py + thick + 1); 1512 px + width - 2 - cell->stat_hp * (width - 4) / 255, py + thick + 1);
1513 } 1513 }
1514 } 1514 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines