[cairo-commit] cairo/src cairo-xlib-surface.c,1.110,1.111
Owen Taylor
commit at pdx.freedesktop.org
Thu Aug 18 17:19:56 PDT 2005
- Previous message: [cairo-commit] cairo/test .cvsignore, 1.44,
1.45 text-pattern-ref.png, 1.1, 1.2 text-pattern.c, 1.1, 1.2
- Next message: [cairo-commit] cairo ChangeLog, 1.909, 1.910 configure.in, 1.129,
1.130
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: otaylor
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv19684/src
Modified Files:
cairo-xlib-surface.c
Log Message:
2005-08-18 Owen Taylor <otaylor at redhat.com>
* src/cairo-xlib-surface.c (_cairo_xlib_surface_show_glyphs): Fix offset
passed in for source patterns. (#2333, Tim Rowley)
* test/text-pattern.c: Fix font to Vera Sans rather than "Sans"
Index: cairo-xlib-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-xlib-surface.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -d -r1.110 -r1.111
--- cairo-xlib-surface.c 18 Aug 2005 22:50:36 -0000 1.110
+++ cairo-xlib-surface.c 19 Aug 2005 00:19:54 -0000 1.111
@@ -2290,7 +2290,7 @@
src->src_picture,
self->dst_picture,
mask_format,
- source_x, source_y,
+ source_x + elts[0].xOff, source_y + elts[0].yOff,
0, 0,
elts, count);
@@ -2393,7 +2393,7 @@
src->src_picture,
self->dst_picture,
mask_format,
- source_x, source_y,
+ source_x + elts[0].xOff, source_y + elts[0].yOff,
0, 0,
elts, count);
@@ -2498,7 +2498,7 @@
src->src_picture,
self->dst_picture,
mask_format,
- source_x, source_y,
+ source_x + elts[0].xOff, source_y + elts[0].yOff,
0, 0,
elts, count);
@@ -2665,22 +2665,22 @@
if (elt_size == 8)
{
status = _cairo_xlib_surface_show_glyphs8 (scaled_font, operator, cache, &key, src, self,
- source_x + attributes.x_offset,
- source_y + attributes.y_offset,
+ source_x + attributes.x_offset - dest_x,
+ source_y + attributes.y_offset - dest_y,
glyphs, entries, num_glyphs);
}
else if (elt_size == 16)
{
status = _cairo_xlib_surface_show_glyphs16 (scaled_font, operator, cache, &key, src, self,
- source_x + attributes.x_offset,
- source_y + attributes.y_offset,
+ source_x + attributes.x_offset - dest_x,
+ source_y + attributes.y_offset - dest_y,
glyphs, entries, num_glyphs);
}
else
{
status = _cairo_xlib_surface_show_glyphs32 (scaled_font, operator, cache, &key, src, self,
- source_x + attributes.x_offset,
- source_y + attributes.y_offset,
+ source_x + attributes.x_offset - dest_x,
+ source_y + attributes.y_offset - dest_y,
glyphs, entries, num_glyphs);
}
- Previous message: [cairo-commit] cairo/test .cvsignore, 1.44,
1.45 text-pattern-ref.png, 1.1, 1.2 text-pattern.c, 1.1, 1.2
- Next message: [cairo-commit] cairo ChangeLog, 1.909, 1.910 configure.in, 1.129,
1.130
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list