ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.209 by sf-exg, Sun Dec 30 11:34:13 2012 UTC vs.
Revision 1.215 by sf-exg, Sat Apr 13 09:10:21 2013 UTC

1879 1879
1880 if (ix) 1880 if (ix)
1881 { 1881 {
1882 THIS->selection.screen = THIS->current_screen; 1882 THIS->selection.screen = THIS->current_screen;
1883 1883
1884 THIS->want_refresh = 1; 1884 THIS->selection_changed ();
1885 THIS->refresh_check (); 1885 THIS->refresh_check ();
1886 } 1886 }
1887 } 1887 }
1888} 1888}
1889 1889
1893 RETVAL = THIS->selection.screen; 1893 RETVAL = THIS->selection.screen;
1894 if (screen >= 0) 1894 if (screen >= 0)
1895 THIS->selection.screen = screen; 1895 THIS->selection.screen = screen;
1896 OUTPUT: 1896 OUTPUT:
1897 RETVAL 1897 RETVAL
1898
1899void
1900rxvt_term::selection_request (Time tm, int selnum)
1898 1901
1899void 1902void
1900rxvt_term::selection_clear (bool clipboard = false) 1903rxvt_term::selection_clear (bool clipboard = false)
1901 1904
1902void 1905void
2206#endif 2209#endif
2207 2210
2208void 2211void
2209rxvt_term::set_background (rxvt_img *img, bool border = false) 2212rxvt_term::set_background (rxvt_img *img, bool border = false)
2210 CODE: 2213 CODE:
2211 delete bg_img; 2214 delete THIS->bg_img;
2212 bg_img = 0; 2215 THIS->bg_img = 0;
2213 THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); 2216 THIS->bg_flags = 0;
2214 2217
2215 if (img) // TODO: cannot be false 2218 if (img) // TODO: cannot be false
2216 { 2219 {
2217 img = img->clone (); // own the img 2220 img = img->clone (); // own the img
2218 2221
2387 INIT: 2390 INIT:
2388 rgba cc = parse_rgba (c, THIS->s); 2391 rgba cc = parse_rgba (c, THIS->s);
2389 C_ARGS: cc 2392 C_ARGS: cc
2390 2393
2391rxvt_img * 2394rxvt_img *
2395rxvt_img::shade (rxvt_img::nv factor)
2396
2397rxvt_img *
2392rxvt_img::filter (octet_string name, SV *params = &PL_sv_undef) 2398rxvt_img::filter (octet_string name, SV *params = &PL_sv_undef)
2393 CODE: 2399 CODE:
2394 rxvt_img::nv *vparams = 0; 2400 rxvt_img::nv *vparams = 0;
2395 int nparams = 0; 2401 int nparams = 0;
2396 2402
2397 if (SvOK (params)) 2403 if (SvOK (params))
2398 { 2404 {
2399 // we overlay rxvt_temp_buf, what a hack
2400 assert (sizeof (rxvt_img::nv) >= sizeof (int));
2401
2402 if (!SvROK (params) || SvTYPE (SvRV (params)) != SVt_PVAV) 2405 if (!SvROK (params) || SvTYPE (SvRV (params)) != SVt_PVAV)
2403 croak ("rxvt_img::filter: params must be an array reference with parameter values"); 2406 croak ("rxvt_img::filter: params must be an array reference with parameter values");
2404 2407
2405 nparams = av_len ((AV *)SvRV (params)) + 1; 2408 nparams = av_len ((AV *)SvRV (params)) + 1;
2406 vparams = rxvt_temp_buf<rxvt_img::nv> (nparams); 2409 vparams = (rxvt_img::nv *)malloc (nparams * sizeof (rxvt_img::nv));
2407 2410
2408 for (int i = 0; i < nparams; ++i) 2411 for (int i = 0; i < nparams; ++i)
2409 vparams [i] = SvNV (*av_fetch ((AV *)SvRV (params), i, 1)); 2412 vparams [i] = SvNV (*av_fetch ((AV *)SvRV (params), i, 1));
2410 } 2413 }
2411 2414
2412 RETVAL = THIS->filter (name, nparams, vparams); 2415 RETVAL = THIS->filter (name, nparams, vparams);
2416 free (vparams);
2413 OUTPUT: 2417 OUTPUT:
2414 RETVAL 2418 RETVAL
2415 2419
2416#endif 2420#endif
2417 2421

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines