st/xorg: Adopt to new dirty clip rect type
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 27 Oct 2009 16:35:06 +0000 (17:35 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 27 Oct 2009 16:40:55 +0000 (17:40 +0100)
src/gallium/state_trackers/xorg/xorg_driver.c

index 847647c1e4da5a97f48054faa02a556ef93d212b..26cf2dd7723811040a281ddfc9c126700ad47995 100644 (file)
@@ -484,11 +484,12 @@ static void xorgBlockHandler(int i, pointer blockData, pointer pTimeout,
            BoxPtr rect = REGION_RECTS(dirty);
            int i;
 
+           /* XXX no need for copy? */
            for (i = 0; i < num_cliprects; i++, rect++) {
-               clip[i].x = rect->x1;
-               clip[i].y = rect->y1;
-               clip[i].width = rect->x2 - rect->x1;
-               clip[i].height = rect->y2 - rect->y1;
+               clip[i].x1 = rect->x1;
+               clip[i].y1 = rect->y1;
+               clip[i].x2 = rect->x2;
+               clip[i].y2 = rect->y2;
            }
 
            /* TODO query connector property to see if this is needed */