… | |
… | |
1094 | XSRETURN_EMPTY; |
1094 | XSRETURN_EMPTY; |
1095 | |
1095 | |
1096 | if (!(lp = pango_layout_get_line (self->pl, line))) |
1096 | if (!(lp = pango_layout_get_line (self->pl, line))) |
1097 | XSRETURN_EMPTY; /* do better */ |
1097 | XSRETURN_EMPTY; /* do better */ |
1098 | |
1098 | |
1099 | if (!pango_layout_line_x_to_index (lp, x * PANGO_SCALE, &index, &trailing)) |
1099 | pango_layout_line_x_to_index (lp, x * PANGO_SCALE, &index, &trailing); |
1100 | XSRETURN_EMPTY; /* do better */ |
|
|
1101 | |
1100 | |
1102 | EXTEND (SP, 2); |
1101 | EXTEND (SP, 2); |
1103 | if (GIMME_V == G_SCALAR) |
1102 | if (GIMME_V == G_SCALAR) |
1104 | PUSHs (sv_2mortal (newSViv (index + trailing))); |
1103 | PUSHs (sv_2mortal (newSViv (index + trailing))); |
1105 | else |
1104 | else |