]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[region] Overlap top right edge lower rectangle starts right of the old
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 22 Nov 2009 22:30:58 +0000 (22:30 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sun, 22 Nov 2009 22:30:58 +0000 (22:30 +0000)
Probably a typo in the original version.

src/libply/ply-region.c

index 2e28b2bc5d07cb43b48e85d062cebc4ec0f4d712..8dd7558a793e25024cf25a4243441c81e3eb57f8 100644 (file)
@@ -154,9 +154,9 @@ merge_rectangle_with_sub_list (ply_region_t    *region,
               ply_rectangle_t *rectangle;
 
               rectangle = copy_rectangle (new_area);
-              rectangle->x = new_area->x + old_area->width;
+              rectangle->x = old_area->x + old_area->width;
               rectangle->y = old_area->y;
-              rectangle->width = (old_area->x + new_area->width) - (old_area->x + old_area->width);
+              rectangle->width = (new_area->x + new_area->width) - (old_area->x + old_area->width);
               rectangle->height = (new_area->y + new_area->height) - old_area->y;
 
               merge_rectangle_with_sub_list (region, rectangle, next_node);