Xnest: replace XDrawImageString() by xcb_image_text_8()
Replace XDrawImageString() by xcb_image_text_8(), as well as their 16-bit counterparts. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
d1d10dc245
commit
5b5bd8bbb7
|
@ -373,16 +373,26 @@ void
|
||||||
xnestImageText8(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count,
|
xnestImageText8(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count,
|
||||||
char *string)
|
char *string)
|
||||||
{
|
{
|
||||||
XDrawImageString(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
|
xcb_image_text_8(xnestUpstreamInfo.conn,
|
||||||
x, y, string, count);
|
count,
|
||||||
|
xnestDrawable(pDrawable),
|
||||||
|
xnest_upstream_gc(pGC),
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
string);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xnestImageText16(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count,
|
xnestImageText16(DrawablePtr pDrawable, GCPtr pGC, int x, int y, int count,
|
||||||
unsigned short *string)
|
unsigned short *string)
|
||||||
{
|
{
|
||||||
XDrawImageString16(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
|
xcb_image_text_16(xnestUpstreamInfo.conn,
|
||||||
x, y, (XChar2b *) string, count);
|
count,
|
||||||
|
xnestDrawable(pDrawable),
|
||||||
|
xnest_upstream_gc(pGC),
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
(xcb_char2b_t*)string);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue