… | |
… | |
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) |
… | |
… | |
1346 | gcv.fill_style = FillTiled; |
1346 | gcv.fill_style = FillTiled; |
1347 | gcv.tile = term->bgPixmap.pixmap; |
1347 | gcv.tile = term->bgPixmap.pixmap; |
1348 | gcv.ts_x_origin = -x; |
1348 | gcv.ts_x_origin = -x; |
1349 | gcv.ts_y_origin = -y; |
1349 | gcv.ts_y_origin = -y; |
1350 | |
1350 | |
1351 | #if 0 |
|
|
1352 | GC gc2 = XCreateGC (disp, d2, |
|
|
1353 | GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCFillStyle, |
|
|
1354 | &gcv); |
|
|
1355 | #endif |
|
|
1356 | XChangeGC (disp, gc, |
1351 | XChangeGC (disp, gc, |
1357 | GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCFillStyle, |
1352 | GCTile | GCTileStipXOrigin | GCTileStipYOrigin | GCFillStyle, |
1358 | &gcv); |
1353 | &gcv); |
1359 | |
1354 | |
1360 | XFillRectangle (disp, d2, gc/*gc2*/, 0, 0, w, h); |
1355 | XFillRectangle (disp, d2, gc, 0, 0, w, h); |
1361 | |
1356 | |
1362 | gcv.fill_style = FillSolid; |
1357 | gcv.fill_style = FillSolid; |
1363 | XChangeGC (disp, gc, GCFillStyle, &gcv); |
1358 | XChangeGC (disp, gc, GCFillStyle, &gcv); |
1364 | /* XFreeGC (disp, gc2); */ |
|
|
1365 | |
|
|
1366 | } |
1359 | } |
|
|
1360 | |
1367 | if (bg >= 0) |
1361 | if (bg >= 0) |
1368 | { |
1362 | { |
1369 | Picture solid_color_pict = XftDrawSrcPicture (d2, &term->pix_colors[bg].c); |
1363 | Picture solid_color_pict = XftDrawSrcPicture (d2, &term->pix_colors[bg].c); |
1370 | XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, 0, 0, w, h); |
1364 | XRenderComposite (disp, PictOpOver, solid_color_pict, None, dst, 0, 0, 0, 0, 0, 0, w, h); |
1371 | } |
1365 | } |
|
|
1366 | |
1372 | back_rendered = true; |
1367 | back_rendered = true; |
1373 | } |
1368 | } |
1374 | } |
1369 | } |
1375 | #endif |
1370 | #endif |
1376 | |
1371 | |
1377 | if(bg >= 0 && !back_rendered) |
1372 | if (bg >= 0 && !back_rendered) |
1378 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1373 | XftDrawRect (d2, &term->pix_colors[bg].c, 0, 0, w, h); |
1379 | |
1374 | |
1380 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1375 | XftDrawGlyphSpec (d2, &term->pix_colors[fg].c, f, enc, ep - enc); |
1381 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1376 | XCopyArea (disp, d2, d, gc, 0, 0, w, h, x, y); |
1382 | } |
1377 | } |