mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 05:48:00 +02:00
Fixed conversion of pixman_box16_t to glitz_rectangle_t
This commit is contained in:
parent
f870f16e98
commit
37f6590708
2 changed files with 7 additions and 4 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2004-04-25 David Reveman <c99drn@cs.umu.se>
|
||||
|
||||
* 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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue