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.250 by root, Fri Dec 28 16:09:03 2007 UTC vs.
Revision 1.251 by root, Fri Dec 28 17:28:01 2007 UTC

1312 1312
1313void 1313void
1314cursor_pos (DC::Layout self, int index) 1314cursor_pos (DC::Layout self, int index)
1315 PPCODE: 1315 PPCODE:
1316{ 1316{
1317 PangoRectangle strong_pos; 1317 PangoRectangle pos;
1318 pango_layout_get_cursor_pos (self->pl, index, &strong_pos, 0); 1318 pango_layout_get_cursor_pos (self->pl, index, 0, &pos);
1319 1319
1320 EXTEND (SP, 3); 1320 EXTEND (SP, 3);
1321 PUSHs (sv_2mortal (newSViv (strong_pos.x / PANGO_SCALE))); 1321 PUSHs (sv_2mortal (newSViv (pos.x / PANGO_SCALE)));
1322 PUSHs (sv_2mortal (newSViv (strong_pos.y / PANGO_SCALE))); 1322 PUSHs (sv_2mortal (newSViv (pos.y / PANGO_SCALE)));
1323 PUSHs (sv_2mortal (newSViv (strong_pos.height / PANGO_SCALE))); 1323 PUSHs (sv_2mortal (newSViv (pos.height / PANGO_SCALE)));
1324} 1324}
1325 1325
1326void 1326void
1327index_to_line_x (DC::Layout self, int index, int trailing = 0) 1327index_to_line_x (DC::Layout self, int index, int trailing = 0)
1328 PPCODE: 1328 PPCODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines