… | |
… | |
391 | |
391 | |
392 | { |
392 | { |
393 | perl_environ = rxvt_environ; |
393 | perl_environ = rxvt_environ; |
394 | localise_env set_environ (perl_environ); |
394 | localise_env set_environ (perl_environ); |
395 | |
395 | |
396 | char *args[] = { |
396 | const char *args[] = { |
397 | "", |
397 | "", |
398 | "-e" |
398 | "-e" |
399 | "BEGIN {" |
399 | "BEGIN {" |
400 | " urxvt->bootstrap;" |
400 | " urxvt->bootstrap;" |
401 | " unshift @INC, '" LIBDIR "';" |
401 | " unshift @INC, '" LIBDIR "';" |
402 | "}" |
402 | "}" |
403 | "" |
403 | "" |
404 | "use urxvt;" |
404 | "use urxvt;", |
|
|
405 | 0 |
405 | }; |
406 | }; |
406 | int argc = ecb_array_length (args); |
407 | int argc = ecb_array_length (args) - 1; |
407 | char **argv = args; |
408 | char **argv = (char **)args; |
408 | |
409 | |
409 | PERL_SYS_INIT3 (&argc, &argv, &environ); |
410 | PERL_SYS_INIT3 (&argc, &argv, &environ); |
410 | perl = perl_alloc (); |
411 | perl = perl_alloc (); |
411 | perl_construct (perl); |
412 | perl_construct (perl); |
412 | |
413 | |
… | |
… | |
1831 | index += rs->value; |
1832 | index += rs->value; |
1832 | } |
1833 | } |
1833 | else |
1834 | else |
1834 | { |
1835 | { |
1835 | --rs; |
1836 | --rs; |
1836 | name = ""; |
1837 | name = (octet_string)""; |
1837 | } |
1838 | } |
1838 | |
1839 | |
1839 | if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES)) |
1840 | if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES)) |
1840 | croak ("requested out-of-bound resource %s+%d,", name, index - rs->value); |
1841 | croak ("requested out-of-bound resource %s+%d,", name, index - rs->value); |
1841 | |
1842 | |
… | |
… | |
2422 | |
2423 | |
2423 | void |
2424 | void |
2424 | rxvt_img::fill (SV *c, int x = 0, int y = 0, int w = THIS->w, int h = THIS->h) |
2425 | rxvt_img::fill (SV *c, int x = 0, int y = 0, int w = THIS->w, int h = THIS->h) |
2425 | PROTOTYPE: $;$$$$ |
2426 | PROTOTYPE: $;$$$$ |
2426 | INIT: |
2427 | INIT: |
2427 | rgba cc = parse_rgba (c, THIS->s); |
2428 | rxvt_screen screen; |
|
|
2429 | screen.set (THIS->d); |
|
|
2430 | rgba cc = parse_rgba (c, &screen); |
2428 | C_ARGS: cc, x, y, w, h |
2431 | C_ARGS: cc, x, y, w, h |
2429 | |
2432 | |
2430 | void |
2433 | void |
2431 | rxvt_img::DESTROY () |
2434 | rxvt_img::DESTROY () |
2432 | CODE: |
2435 | CODE: |
… | |
… | |
2490 | rxvt_img::rotate (int x, int y, rxvt_img::nv phi) |
2493 | rxvt_img::rotate (int x, int y, rxvt_img::nv phi) |
2491 | |
2494 | |
2492 | rxvt_img * |
2495 | rxvt_img * |
2493 | rxvt_img::tint (SV *c) |
2496 | rxvt_img::tint (SV *c) |
2494 | INIT: |
2497 | INIT: |
2495 | rgba cc = parse_rgba (c, THIS->s); |
2498 | rxvt_screen screen; |
|
|
2499 | screen.set (THIS->d); |
|
|
2500 | rgba cc = parse_rgba (c, &screen); |
2496 | C_ARGS: cc |
2501 | C_ARGS: cc |
2497 | |
2502 | |
2498 | rxvt_img * |
2503 | rxvt_img * |
2499 | rxvt_img::shade (rxvt_img::nv factor) |
2504 | rxvt_img::shade (rxvt_img::nv factor) |
2500 | |
2505 | |