[cairo-commit] src/cairo-win32-surface.c

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Fri Aug 3 14:20:19 PDT 2007


 src/cairo-win32-surface.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree 9bcedd3d6f0de8c380e7ab4981d32377e3c5a778 (from f52aa4c13e91339e575ca2c52c9e3a1f4d95b106)
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Fri Aug 3 14:18:40 2007 -0700

    [win32] compilation fix for win32

diff --git a/src/cairo-win32-surface.c b/src/cairo-win32-surface.c
index f433b3d..81e1081 100644
--- a/src/cairo-win32-surface.c
+++ b/src/cairo-win32-surface.c
@@ -1431,10 +1431,10 @@ _cairo_win32_surface_set_clip_region (vo
 	data->rdh.iType = RDH_RECTANGLES;
 	data->rdh.nCount = num_boxes;
 	data->rdh.nRgnSize = num_boxes * sizeof (RECT);
-	data->rdh.rcBound.left = extents->x1;
-	data->rdh.rcBound.top = extents->y1;
-	data->rdh.rcBound.right = extents->x2;
-	data->rdh.rcBound.bottom = extents->y2;
+	data->rdh.rcBound.left = extents.x;
+	data->rdh.rcBound.top = extents.y;
+	data->rdh.rcBound.right = extents.x + extents.width;
+	data->rdh.rcBound.bottom = extents.y + extents.height;
 
 	for (i = 0; i < num_boxes; i++) {
 	    rects[i].left = boxes[i].p1.x;
@@ -1443,7 +1443,7 @@ _cairo_win32_surface_set_clip_region (vo
 	    rects[i].bottom = boxes[i].p2.y;
 	}
 
-	_cairo_region_boxes_fini (region, &boxes);
+	_cairo_region_boxes_fini (region, boxes);
 
 	gdi_region = ExtCreateRegion (NULL, data_size, data);
 	free (data);


More information about the cairo-commit mailing list