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.244 by root, Thu Dec 27 20:38:49 2007 UTC vs.
Revision 1.245 by root, Fri Dec 28 15:05:20 2007 UTC

1317 PPCODE: 1317 PPCODE:
1318{ 1318{
1319 int line, x; 1319 int line, x;
1320 1320
1321 pango_layout_index_to_line_x (self->pl, index, trailing, &line, &x); 1321 pango_layout_index_to_line_x (self->pl, index, trailing, &line, &x);
1322
1323#if !PANGO_VERSION_CHECK (1, 17. 3)
1322 /* pango bug: line is between 1..numlines, not 0..numlines-1 */ 1324 /* pango bug: line is between 1..numlines, not 0..numlines-1 */
1325 --line;
1326#endif
1323 1327
1324 EXTEND (SP, 2); 1328 EXTEND (SP, 2);
1325 PUSHs (sv_2mortal (newSViv (line - 1))); 1329 PUSHs (sv_2mortal (newSViv (line)));
1326 PUSHs (sv_2mortal (newSViv (x / PANGO_SCALE))); 1330 PUSHs (sv_2mortal (newSViv (x / PANGO_SCALE)));
1327} 1331}
1328 1332
1329void 1333void
1330line_x_to_index (DC::Layout self, int line, int x) 1334line_x_to_index (DC::Layout self, int line, int x)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines