… | |
… | |
1322 | { |
1322 | { |
1323 | if (ep != enc) |
1323 | if (ep != enc) |
1324 | { |
1324 | { |
1325 | rxvt_drawable &d2 = d.screen->scratch_drawable (w, h); |
1325 | rxvt_drawable &d2 = d.screen->scratch_drawable (w, h); |
1326 | |
1326 | |
1327 | #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
1327 | if (0) |
|
|
1328 | ; |
|
|
1329 | #ifdef TRANSPARENT |
1328 | if (bg < 0 && term->am_pixmap_trans) |
1330 | else if (bg < 0 && term->am_pixmap_trans) |
1329 | XCopyArea (disp, term->pixmap, d2, gc, |
1331 | XCopyArea (disp, term->pixmap, d2, gc, |
1330 | x + term->window_vt_x, y + term->window_vt_y, |
1332 | x + term->window_vt_x, y + term->window_vt_y, |
1331 | w, h, 0, 0); |
1333 | w, h, 0, 0); |
|
|
1334 | #endif |
|
|
1335 | #ifdef XPM_BACKGROUND |
1332 | else if (bg < 0 && term->bgPixmap.pixmap) |
1336 | else if (bg < 0 && term->bgPixmap.pixmap) |
1333 | { |
1337 | { |
1334 | XGCValues gcv; |
1338 | XGCValues gcv; |
1335 | |
1339 | |
1336 | gcv.fill_style = FillTiled; |
1340 | gcv.fill_style = FillTiled; |
… | |
… | |
1344 | |
1348 | |
1345 | XFillRectangle (disp, d2, gc2, 0, 0, w, h); |
1349 | XFillRectangle (disp, d2, gc2, 0, 0, w, h); |
1346 | |
1350 | |
1347 | XFreeGC (disp, gc2); |
1351 | XFreeGC (disp, gc2); |
1348 | } |
1352 | } |
|
|
1353 | #endif |
1349 | else |
1354 | else |
1350 | #endif |
|
|
1351 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1355 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1352 | |
1356 | |
1353 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1357 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1354 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1358 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1355 | } |
1359 | } |