From: Charlie Brej Date: Sat, 21 Nov 2009 22:35:55 +0000 (+0000) Subject: [x11] Force refresh area to start at 0,0 X-Git-Tag: 0.8.0~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8768538675d6914b9f03a3bace87fca567553c2;p=thirdparty%2Fplymouth.git [x11] Force refresh area to start at 0,0 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. --- diff --git a/src/plugins/renderers/x11/plugin.c b/src/plugins/renderers/x11/plugin.c index 8f50be5f..9e78c069 100644 --- a/src/plugins/renderers/x11/plugin.c +++ b/src/plugins/renderers/x11/plugin.c @@ -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); }