Xnest: GC: set stipple filling via xcb_change_gc
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
710a60406c
commit
aee6eefbd4
|
@ -420,9 +420,16 @@ xnestPushPixels(GCPtr pGC, PixmapPtr pBitmap, DrawablePtr pDst,
|
||||||
{
|
{
|
||||||
/* only works for solid bitmaps */
|
/* only works for solid bitmaps */
|
||||||
if (pGC->fillStyle == FillSolid) {
|
if (pGC->fillStyle == FillSolid) {
|
||||||
XSetStipple(xnestDisplay, xnestGC(pGC), xnestPixmap(pBitmap));
|
xnChangeGC(xnestUpstreamInfo.conn,
|
||||||
XSetTSOrigin(xnestDisplay, xnestGC(pGC), x, y);
|
xnestUpstreamGC(pGC),
|
||||||
XSetFillStyle(xnestDisplay, xnestGC(pGC), FillStippled);
|
(XnGCValues) {
|
||||||
|
.fill_style = XCB_FILL_STYLE_STIPPLED,
|
||||||
|
.ts_x_origin = x,
|
||||||
|
.ts_y_origin = y,
|
||||||
|
.stipple = xnestPixmap(pBitmap),
|
||||||
|
},
|
||||||
|
XCB_GC_FILL_STYLE | XCB_GC_TILE_STIPPLE_ORIGIN_X |
|
||||||
|
XCB_GC_TILE_STIPPLE_ORIGIN_Y | XCB_GC_STIPPLE);
|
||||||
|
|
||||||
xcb_rectangle_t rect = {
|
xcb_rectangle_t rect = {
|
||||||
.x = x, .y = y, .width = width, .height = height,
|
.x = x, .y = y, .width = width, .height = height,
|
||||||
|
@ -433,7 +440,15 @@ xnestPushPixels(GCPtr pGC, PixmapPtr pBitmap, DrawablePtr pDst,
|
||||||
1,
|
1,
|
||||||
&rect);
|
&rect);
|
||||||
|
|
||||||
XSetFillStyle(xnestDisplay, xnestGC(pGC), FillSolid);
|
xnChangeGC(xnestUpstreamInfo.conn,
|
||||||
|
xnestUpstreamGC(pGC),
|
||||||
|
(XnGCValues) {
|
||||||
|
.fill_style = XCB_FILL_STYLE_SOLID,
|
||||||
|
.ts_x_origin = x,
|
||||||
|
.ts_y_origin = y,
|
||||||
|
.stipple = xnestPixmap(pBitmap),
|
||||||
|
},
|
||||||
|
XCB_GC_FILL_STYLE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ErrorF("xnest warning: function xnestPushPixels not implemented\n");
|
ErrorF("xnest warning: function xnestPushPixels not implemented\n");
|
||||||
|
|
Loading…
Reference in New Issue