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

Comparing rxvt-unicode/src/background.C (file contents):
Revision 1.53 by sf-exg, Wed Sep 1 13:18:55 2010 UTC vs.
Revision 1.54 by sf-exg, Wed Sep 1 22:49:35 2010 UTC

1189 XImage *result = NULL; 1189 XImage *result = NULL;
1190 1190
1191 if (background_flags && (flags & isInvalid)) 1191 if (background_flags && (flags & isInvalid))
1192 { 1192 {
1193 result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap); 1193 result = XGetImage (target->dpy, pixmap, 0, 0, pmap_width, pmap_height, AllPlanes, ZPixmap);
1194 }
1194 1195
1196 if (result)
1197 {
1195# if !defined(HAVE_AFTERIMAGE) && !XFT 1198# if !defined(HAVE_AFTERIMAGE) && !XFT
1196 /* our own client-side tinting */ 1199 /* our own client-side tinting */
1197 /* ATTENTION: We ASSUME that XFT will let us do all the tinting necessary server-side. 1200 /* ATTENTION: We ASSUME that XFT will let us do all the tinting necessary server-side.
1198 This may need to be changed in need_client_side_rendering() logic is altered !!! */ 1201 This may need to be changed in need_client_side_rendering() logic is altered !!! */
1199 if (result != NULL && !(background_flags & transpPmapTinted) && (flags & tintNeeded)) 1202 if (!(background_flags & transpPmapTinted) && (flags & tintNeeded))
1200 { 1203 {
1201 rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC); 1204 rgba c (rgba::MAX_CC,rgba::MAX_CC,rgba::MAX_CC);
1202 if (flags & tintSet) 1205 if (flags & tintSet)
1203 tint.get (c); 1206 tint.get (c);
1204 ShadeXImage (target, result, shade, c.r, c.g, c.b); 1207 ShadeXImage (target, result, shade, c.r, c.g, c.b);
1205 } 1208 }
1206# endif 1209# endif
1207 }
1208 1210
1209 if (result)
1210 {
1211 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL); 1211 GC gc = XCreateGC (target->dpy, target->vt, 0UL, NULL);
1212 1212
1213 if (gc) 1213 if (gc)
1214 { 1214 {
1215 if (/*pmap_depth != target->depth &&*/ pixmap != None) 1215 if (/*pmap_depth != target->depth &&*/ pixmap != None)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines