[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.
This commit is contained in:
Charlie Brej 2009-11-21 22:35:55 +00:00
parent 57fb558046
commit d876853867

View 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);
}