projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79c5ba7
)
text: cairo: fix debug message to print correct values
author
David Herrmann
<dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 13:04:04 +0000
(14:04 +0100)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Thu, 24 Jan 2013 13:04:04 +0000
(14:04 +0100)
We need to print the actual stride+buffer instead of the first set values.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/text_cairo.c
patch
|
blob
|
history
diff --git
a/src/text_cairo.c
b/src/text_cairo.c
index
df3b3ee
..
6859aff
100644
(file)
--- a/
src/text_cairo.c
+++ b/
src/text_cairo.c
@@
-308,6
+308,7
@@
static int find_glyph(struct kmscon_text *txt, struct tc_glyph **out,
}
buf = &glyph->glyph->buf;
+ stride = buf->stride;
format = format_u2c(buf->format);
glyph->surf = cairo_image_surface_create_for_data(buf->data,
format,
@@
-348,8
+349,8
@@
static int find_glyph(struct kmscon_text *txt, struct tc_glyph **out,
}
if (ret != CAIRO_STATUS_SUCCESS) {
log_error("cannot create cairo-glyph: %d %p %d %d %d %d",
- ret,
buf->data, format, buf->width, buf->heigh
t,
- buf->stride);
+ ret,
glyph->data ? glyph->data : buf->data, forma
t,
+ buf->
width, buf->height,
stride);
ret = -EFAULT;
goto err_cairo;
}