summaryrefslogtreecommitdiff
path: root/src/cairo-xcb-surface.c
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2008-01-22 15:32:11 -0800
committerVladimir Vukicevic <vladimir@h-232.office.mozilla.org>2008-01-22 15:32:11 -0800
commit02970ac8cf27bc9d42cf27848a97019d9dd13b6d (patch)
treedf9841648694c4ba996a8867c15df763db5bcee0 /src/cairo-xcb-surface.c
parent1109ccfb4e5b078581a3b4a7e2d152681fa863ec (diff)
Fix usage of cairo_rectangle_int16_t leading to memory corruption
cairo_rectangle_int16_t was being used in a number of places instead of cairo_rectangle_int_t, which led to memory corruption when cairo was using a fixed point format with a bigger space than 16.16 (such as 24.8).
Diffstat (limited to 'src/cairo-xcb-surface.c')
-rw-r--r--src/cairo-xcb-surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c
index 2b1f888a..6187db28 100644
--- a/src/cairo-xcb-surface.c
+++ b/src/cairo-xcb-surface.c
@@ -313,7 +313,7 @@ _get_image_surface (cairo_xcb_surface_t *surface,
y2 = surface->height;
if (interest_rect) {
- cairo_rectangle_int16_t rect;
+ cairo_rectangle_int_t rect;
rect.x = interest_rect->x;
rect.y = interest_rect->y;
@@ -2405,7 +2405,7 @@ _cairo_xcb_surface_show_glyphs (void *abstract_dst,
(cairo_surface_t **) &src,
&attributes);
} else {
- cairo_rectangle_int16_t glyph_extents;
+ cairo_rectangle_int_t glyph_extents;
status = _cairo_scaled_font_glyph_device_extents (scaled_font,
glyphs,