… | |
… | |
57 | typedef int render_repeat_mode; |
57 | typedef int render_repeat_mode; |
58 | |
58 | |
59 | #if HAVE_PIXBUF |
59 | #if HAVE_PIXBUF |
60 | typedef GdkPixbuf * urxvt__pixbuf; |
60 | typedef GdkPixbuf * urxvt__pixbuf; |
61 | #endif |
61 | #endif |
|
|
62 | #if HAVE_IMG |
62 | typedef rxvt_img * urxvt__img; |
63 | typedef rxvt_img * urxvt__img; |
63 | typedef rxvt_img::nv rxvt_img__nv; |
64 | typedef rxvt_img::nv rxvt_img__nv; |
64 | |
65 | |
65 | ///////////////////////////////////////////////////////////////////////////// |
66 | ///////////////////////////////////////////////////////////////////////////// |
66 | |
67 | |
… | |
… | |
105 | |
106 | |
106 | return c; |
107 | return c; |
107 | } |
108 | } |
108 | |
109 | |
109 | ///////////////////////////////////////////////////////////////////////////// |
110 | ///////////////////////////////////////////////////////////////////////////// |
|
|
111 | #endif |
110 | |
112 | |
111 | static wchar_t * |
113 | static wchar_t * |
112 | sv2wcs (SV *sv) |
114 | sv2wcs (SV *sv) |
113 | { |
115 | { |
114 | STRLEN len; |
116 | STRLEN len; |
… | |
… | |
2214 | if (img) // TODO: cannot be false |
2216 | if (img) // TODO: cannot be false |
2215 | { |
2217 | { |
2216 | img = img->clone (); // own the img |
2218 | img = img->clone (); // own the img |
2217 | |
2219 | |
2218 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2220 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2219 | img->sub_rect (0, 0, |
2221 | img->sub_rect (0, 0, |
2220 | border ? THIS->vt_width : THIS->szHint.width, |
2222 | border ? THIS->vt_width : THIS->szHint.width, |
2221 | border ? THIS->vt_height : THIS->szHint.height) |
2223 | border ? THIS->vt_height : THIS->szHint.height) |
2222 | ->replace (img); |
2224 | ->replace (img); |
2223 | |
2225 | |
2224 | // just in case, should usually be a nop |
2226 | // just in case, should usually be a nop |
2225 | img->reify () |
2227 | img->reify () |
2226 | ->replace (img); |
2228 | ->replace (img); |
2227 | |
2229 | |