mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-20 04:40:07 +01:00
test: Workaround pixman limits in large-source-roi
Since 1cc750ed92a936d84b47cac696aaffd226e1c02e pixman won't perform the compositing if it can't prove that this the computations it has to perform will fit within the size of the variables it uses. It looks like in this case it cannot prove that no overflow will happen unless surface_width <= 30582. Instead of this size (discovered by bisection), a safer looking 30000 was chosen. It should still trigger the problems the original test was looking for, because backends which support 30000xheight surfaces will likely support 32767xheight as well.
This commit is contained in:
parent
b8e7bfdff0
commit
67cfb20bd0
1 changed files with 3 additions and 1 deletions
|
|
@ -47,7 +47,9 @@ static cairo_test_status_t
|
|||
draw (cairo_t *cr, int width, int height)
|
||||
{
|
||||
cairo_surface_t *source;
|
||||
double source_width = 32767.0;
|
||||
/* Since 1cc750ed92a936d84b47cac696aaffd226e1c02e pixman will not
|
||||
* paint on the source surface if source_width > 30582. */
|
||||
double source_width = 30000.0;
|
||||
|
||||
cairo_set_source_rgb (cr, 1,1,1);
|
||||
cairo_paint (cr);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue