… | |
… | |
1326 | #ifdef HAVE_BG_PIXMAP |
1326 | #ifdef HAVE_BG_PIXMAP |
1327 | if (term->bgPixmap.pixmap) |
1327 | if (term->bgPixmap.pixmap) |
1328 | { |
1328 | { |
1329 | Picture dst = 0; |
1329 | Picture dst = 0; |
1330 | if (bg >= 0 && term->pix_colors[bg].c.color.alpha < 0x0ff00) |
1330 | if (bg >= 0 && term->pix_colors[bg].c.color.alpha < 0x0ff00) |
1331 | dst = XftDrawPicture(d2); |
1331 | dst = XftDrawPicture (d2); |
1332 | |
1332 | |
1333 | if (bg < 0 || dst != 0) |
1333 | if (bg < 0 || dst != 0) |
1334 | { |
1334 | { |
1335 | if (term->bgPixmap.pmap_width >= x + term->window_vt_x+w |
1335 | if (term->bgPixmap.pmap_width >= x + term->window_vt_x+w |
1336 | && term->bgPixmap.pmap_height >= y + term->window_vt_y+h) |
1336 | && term->bgPixmap.pmap_height >= y + term->window_vt_y+h) |
… | |
… | |
1367 | back_rendered = true; |
1367 | back_rendered = true; |
1368 | } |
1368 | } |
1369 | } |
1369 | } |
1370 | #endif |
1370 | #endif |
1371 | |
1371 | |
1372 | if(bg >= 0 && !back_rendered) |
1372 | if (bg >= 0 && !back_rendered) |
1373 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1373 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1374 | |
1374 | |
1375 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1375 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1376 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1376 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1377 | } |
1377 | } |