diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-28 19:10:53 +0000 |
---|---|---|
committer | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-28 19:10:53 +0000 |
commit | 2152c8c830a244275382107869ba83fc320b8f55 (patch) | |
tree | 4b1e207834cb0b00dfe632a5c17e31c8448e35e2 /src/libply/ply-region.h | |
parent | ac38fe872af4abf93251672de9052299365cc44b (diff) |
[region] Allow rectangles to be sorted before being fed back
The renderers commit the rectangles derived from the region in a random order.
This gives some tearing as the screen is displayed with a random regions in
their new state. The change sorts the list of rectangles according to their Y
value to commit them from top to bottom. This gives fewer tear lines.
Diffstat (limited to 'src/libply/ply-region.h')
-rw-r--r-- | src/libply/ply-region.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libply/ply-region.h b/src/libply/ply-region.h index ee6e992f..f138b9b7 100644 --- a/src/libply/ply-region.h +++ b/src/libply/ply-region.h @@ -38,6 +38,7 @@ void ply_region_add_rectangle (ply_region_t *region, ply_rectangle_t *rectangle); void ply_region_clear (ply_region_t *region); ply_list_t *ply_region_get_rectangle_list (ply_region_t *region); +ply_list_t *ply_region_get_sorted_rectangle_list (ply_region_t *region); bool ply_region_is_empty (ply_region_t *region); |