mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 07:58:02 +02:00
Avoid attempting to create a size-0 Pixmap, (to prevent the associated X error). This actually showed up when the clip region is empty. Thanks to Radek Doulík for the bug report.
Remove clip-all from the XFAIL list since it works now.
This commit is contained in:
parent
e39b239171
commit
e54787b78d
4 changed files with 14 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
|
@ -1,3 +1,14 @@
|
|||
2005-09-19 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairo-xlib-surface.c: (_create_a8_picture): Avoid attempting
|
||||
to create a size-0 Pixmap, (to prevent the associated X
|
||||
error). This actually showed up when the clip region is
|
||||
empty. Thanks to Radek Doulík for the bug report.
|
||||
|
||||
* test/Makefile.am:
|
||||
* test/clip-all.c: (main): Remove clip-all from the XFAIL list
|
||||
since it works now.
|
||||
|
||||
2005-09-19 Carl Worth <cworth@cworth.org>
|
||||
|
||||
Originally: 2005-09-19 Hans Breuer <hans@breuer.org>
|
||||
|
|
|
|||
|
|
@ -1352,7 +1352,8 @@ _create_a8_picture (cairo_xlib_surface_t *surface,
|
|||
unsigned long mask = 0;
|
||||
|
||||
Pixmap pixmap = XCreatePixmap (surface->dpy, surface->drawable,
|
||||
width, height,
|
||||
width <= 0 ? 1 : width,
|
||||
height <= 0 ? 1 : height,
|
||||
8);
|
||||
Picture picture;
|
||||
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ rel-path-ref.png
|
|||
# provide an explanation for the expected failure.
|
||||
XFAIL_TESTS = \
|
||||
a8-mask \
|
||||
clip-all \
|
||||
filter-nearest-offset \
|
||||
pixman-rotate \
|
||||
self-intersecting \
|
||||
|
|
|
|||
|
|
@ -65,6 +65,5 @@ draw (cairo_t *cr, int width, int height)
|
|||
int
|
||||
main (void)
|
||||
{
|
||||
return cairo_test_expect_failure (&test, draw,
|
||||
"Need to avoid trying to create size-0 Pixmaps in cairo-xlib");
|
||||
return cairo_test (&test, draw);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue