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.207 by sf-exg, Fri Dec 28 21:19:21 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
2203 OUTPUT: 2206 OUTPUT:
2204 RETVAL 2207 RETVAL
2205 2208
2206#endif 2209#endif
2207 2210
2208#if HAVE_BG_PIXMAP
2209
2210void 2211void
2211rxvt_term::set_background (rxvt_img *img, bool border = false) 2212rxvt_term::set_background (rxvt_img *img, bool border = false)
2212 CODE: 2213 CODE:
2213 THIS->bg_destroy (); 2214 delete THIS->bg_img;
2214 THIS->bg_flags &= ~(rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER | rxvt_term::BG_IS_TRANSPARENT); 2215 THIS->bg_img = 0;
2216 THIS->bg_flags = 0;
2215 2217
2216 if (img) // TODO: cannot be false 2218 if (img) // TODO: cannot be false
2217 { 2219 {
2218 img = img->clone (); // own the img 2220 img = img->clone (); // own the img
2219 2221
2234 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER; 2236 THIS->bg_flags |= rxvt_term::BG_NEEDS_REFRESH | rxvt_term::BG_INHIBIT_RENDER;
2235 2237
2236 if (!border) 2238 if (!border)
2237 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT; 2239 THIS->bg_flags |= rxvt_term::BG_IS_TRANSPARENT;
2238 } 2240 }
2239
2240#endif
2241 2241
2242#endif 2242#endif
2243 2243
2244############################################################################# 2244#############################################################################
2245# urxvt::overlay 2245# urxvt::overlay
2390 INIT: 2390 INIT:
2391 rgba cc = parse_rgba (c, THIS->s); 2391 rgba cc = parse_rgba (c, THIS->s);
2392 C_ARGS: cc 2392 C_ARGS: cc
2393 2393
2394rxvt_img * 2394rxvt_img *
2395rxvt_img::shade (rxvt_img::nv factor)
2396
2397rxvt_img *
2395rxvt_img::filter (octet_string name, SV *params = &PL_sv_undef) 2398rxvt_img::filter (octet_string name, SV *params = &PL_sv_undef)
2396 CODE: 2399 CODE:
2397 rxvt_img::nv *vparams = 0; 2400 rxvt_img::nv *vparams = 0;
2398 int nparams = 0; 2401 int nparams = 0;
2399 2402
2400 if (SvOK (params)) 2403 if (SvOK (params))
2401 { 2404 {
2402 // we overlay rxvt_temp_buf, what a hack
2403 assert (sizeof (rxvt_img::nv) >= sizeof (int));
2404
2405 if (!SvROK (params) || SvTYPE (SvRV (params)) != SVt_PVAV) 2405 if (!SvROK (params) || SvTYPE (SvRV (params)) != SVt_PVAV)
2406 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");
2407 2407
2408 nparams = av_len ((AV *)SvRV (params)) + 1; 2408 nparams = av_len ((AV *)SvRV (params)) + 1;
2409 vparams = rxvt_temp_buf<rxvt_img::nv> (nparams); 2409 vparams = (rxvt_img::nv *)malloc (nparams * sizeof (rxvt_img::nv));
2410 2410
2411 for (int i = 0; i < nparams; ++i) 2411 for (int i = 0; i < nparams; ++i)
2412 vparams [i] = SvNV (*av_fetch ((AV *)SvRV (params), i, 1)); 2412 vparams [i] = SvNV (*av_fetch ((AV *)SvRV (params), i, 1));
2413 } 2413 }
2414 2414
2415 RETVAL = THIS->filter (name, nparams, vparams); 2415 RETVAL = THIS->filter (name, nparams, vparams);
2416 free (vparams);
2416 OUTPUT: 2417 OUTPUT:
2417 RETVAL 2418 RETVAL
2418 2419
2419#endif 2420#endif
2420 2421

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines