--- deliantra/Deliantra-Client/Client.xs 2007/12/27 20:38:49 1.244 +++ deliantra/Deliantra-Client/Client.xs 2007/12/28 15:05:20 1.245 @@ -1319,10 +1319,14 @@ int line, x; pango_layout_index_to_line_x (self->pl, index, trailing, &line, &x); + +#if !PANGO_VERSION_CHECK (1, 17. 3) /* pango bug: line is between 1..numlines, not 0..numlines-1 */ + --line; +#endif EXTEND (SP, 2); - PUSHs (sv_2mortal (newSViv (line - 1))); + PUSHs (sv_2mortal (newSViv (line))); PUSHs (sv_2mortal (newSViv (x / PANGO_SCALE))); }