]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[x11] Force refresh area to start at 0,0
authorCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 21 Nov 2009 22:35:55 +0000 (22:35 +0000)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Sat, 21 Nov 2009 22:35:55 +0000 (22:35 +0000)
The x and y values, in area element, were used to determine the position of the
window on the screen. With the x and y not at 0, the full redraw not working
correctly on the second head.

src/plugins/renderers/x11/plugin.c

index 8f50be5f5b39bde4931d7aed5ccca887b5d0669f..9e78c069ad37f81e537486963d5e3667041bd352 100644 (file)
@@ -378,10 +378,16 @@ ply_renderer_head_redraw (ply_renderer_backend_t *backend,
                           ply_renderer_head_t    *head)
 {
   ply_region_t *region;
+  ply_rectangle_t area;
+
+  area.x = 0;
+  area.y = 0;
+  area.width = head->area.width;
+  area.height = head->area.height;
 
   region = ply_pixel_buffer_get_updated_areas (head->pixel_buffer);
 
-  ply_region_add_rectangle (region, &head->area);
+  ply_region_add_rectangle (region, &area);
 
   flush_head (backend, head);
 }