From 37f6590708061a79f1b3b34efe550935b3a03d8c Mon Sep 17 00:00:00 2001 From: David Reveman Date: Sun, 25 Apr 2004 05:11:07 +0000 Subject: [PATCH] Fixed conversion of pixman_box16_t to glitz_rectangle_t --- ChangeLog | 3 +++ src/cairo_gl_surface.c | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fa9608806..c55391f6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-04-25 David Reveman + * src/cairo_gl_surface.c (_cairo_gl_surface_set_clip_region): + Fixed conversion of pixman_box16_t to glitz_rectangle_t. + * src/cairoint.h: Added scale factor value to cairo_color_stop_t. Added cairo_shader_function_t and cairo_shader_op_t. diff --git a/src/cairo_gl_surface.c b/src/cairo_gl_surface.c index 95e594e9e..c8e2230f4 100644 --- a/src/cairo_gl_surface.c +++ b/src/cairo_gl_surface.c @@ -773,10 +773,10 @@ _cairo_gl_surface_set_clip_region (void *abstract_surface, return CAIRO_STATUS_NO_MEMORY; for (i = 0; i < n; n++, box++) { - clip_rects[i].x = (short) (box->x1 >> 16); - clip_rects[i].y = (short) (box->y1 >> 16); - clip_rects[i].width = (unsigned short) ((box->x2 - box->x1) >> 16); - clip_rects[i].height = (unsigned short) ((box->y2 - box->y1) >> 16); + clip_rects[i].x = box->x1; + clip_rects[i].y = box->y1; + clip_rects[i].width = (unsigned short) (box->x2 - box->x1); + clip_rects[i].height = (unsigned short) (box->y2 - box->y1); } glitz_surface_clip_rectangles (surface->surface,