[PATCH] glamor: Fix uxa-entry point for ImageText16

Keith Packard keithp at keithp.com
Fri Apr 25 23:38:35 PDT 2014


Was interpreting the incoming chars as 8-bits instead of 16-bits,
resulting in the wrong characters being drawn.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glamor/glamor_text.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glamor/glamor_text.c b/glamor/glamor_text.c
index aa63d1a..6e02b9a 100644
--- a/glamor/glamor_text.c
+++ b/glamor/glamor_text.c
@@ -522,7 +522,7 @@ Bool
 glamor_image_text16_nf(DrawablePtr drawable, GCPtr gc,
                        int x, int y, int count, unsigned short *chars)
 {
-    return glamor_image_text(drawable, gc, x, y, count, (char *) chars, FALSE);
+    return glamor_image_text(drawable, gc, x, y, count, (char *) chars, TRUE);
 }
 
 void
-- 
2.0.0.rc0



More information about the xorg-devel mailing list