1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: rxvtfont.C |
2 | * File: rxvtfont.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
4 | * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com> |
5 | * - original version. |
5 | * - original version. |
6 | * |
6 | * |
… | |
… | |
1274 | dTermGC; |
1274 | dTermGC; |
1275 | |
1275 | |
1276 | int w = term->fwidth * len; |
1276 | int w = term->fwidth * len; |
1277 | int h = term->fheight; |
1277 | int h = term->fheight; |
1278 | |
1278 | |
1279 | bool buffered = 0 |
1279 | bool buffered = bg >= 0 // we don't use a transparent bg |
|
|
1280 | #ifndef FORCE_UNBUFFERED_XFT |
1280 | #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
1281 | # if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
1281 | || !term->am_transparent // we aren't transparent |
1282 | || !term->am_transparent // we aren't transparent |
1282 | || term->am_pixmap_trans // we have a pixmap |
1283 | || term->am_pixmap_trans // we have a pixmap |
1283 | #endif |
1284 | # endif |
1284 | || bg >= 0; // we don't use a transparent bg |
1285 | #endif |
|
|
1286 | ; |
1285 | |
1287 | |
1286 | // cut trailing spaces |
1288 | // cut trailing spaces |
1287 | while (len && text [len - 1] == ' ') |
1289 | while (len && text [len - 1] == ' ') |
1288 | len--; |
1290 | len--; |
1289 | |
1291 | |
… | |
… | |
1322 | { |
1324 | { |
1323 | rxvt_drawable &d2 = d.screen->scratch_drawable (w, h); |
1325 | rxvt_drawable &d2 = d.screen->scratch_drawable (w, h); |
1324 | |
1326 | |
1325 | #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
1327 | #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) |
1326 | if (bg < 0 && term->am_pixmap_trans) |
1328 | if (bg < 0 && term->am_pixmap_trans) |
1327 | XCopyArea (disp, term->pixmap, d2, gc, x, y, w, h, 0, 0); |
1329 | XCopyArea (disp, term->pixmap, d2, gc, |
|
|
1330 | x + term->window_vt_x, y + term->window_vt_y, |
|
|
1331 | w, h, 0, 0); |
1328 | else if (bg < 0 && term->bgPixmap.pixmap) |
1332 | else if (bg < 0 && term->bgPixmap.pixmap) |
1329 | { |
1333 | { |
1330 | XGCValues gcv; |
1334 | XGCValues gcv; |
1331 | |
1335 | |
1332 | gcv.fill_style = FillTiled; |
1336 | gcv.fill_style = FillTiled; |