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,