… | |
… | |
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 | |
1329 | void |
1333 | void |
1330 | line_x_to_index (DC::Layout self, int line, int x) |
1334 | line_x_to_index (DC::Layout self, int line, int x) |
… | |
… | |
2846 | void glSeparableFilter2D (int target, int internalformat, int width, int height, int format, int type, char *row, char *column) |
2850 | void glSeparableFilter2D (int target, int internalformat, int width, int height, int format, int type, char *row, char *column) |
2847 | CODE: |
2851 | CODE: |
2848 | if (gl.SeparableFilter2D) |
2852 | if (gl.SeparableFilter2D) |
2849 | gl.SeparableFilter2D (target, internalformat, width, height, format, type, row, column); |
2853 | gl.SeparableFilter2D (target, internalformat, width, height, format, type, row, column); |
2850 | |
2854 | |
2851 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data) |
2855 | void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, char *data = 0) |
2852 | |
2856 | |
2853 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
2857 | void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) |
2854 | |
2858 | |
2855 | void glDrawPixels (int width, int height, int format, int type, char *pixels) |
2859 | void glDrawPixels (int width, int height, int format, int type, char *pixels) |
2856 | |
2860 | |