Replace mysterious image->depth == 32 ? 24 : image->depth with simply image->depth.

This commit is contained in:
Carl Worth 2003-12-11 10:01:10 +00:00
parent 6cd6ac5a05
commit c2696a7d8d
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2003-12-11 Carl Worth <cworth@isi.edu>
* src/cairo_xlib_surface.c (_cairo_xlib_surface_set_image):
Replace mysterious image->depth == 32 ? 24 : image->depth with
simply image->depth.
2003-12-11 Carl Worth <cworth@east.isi.edu>
* cairo.pc.in (Requires):

View file

@ -257,7 +257,7 @@ _cairo_xlib_surface_set_image (void *abstract_surface,
ximage = XCreateImage (surface->dpy,
DefaultVisual(surface->dpy, DefaultScreen(surface->dpy)),
image->depth == 32 ? 24 : image->depth,
image->depth,
ZPixmap,
0,
image->data,

View file

@ -257,7 +257,7 @@ _cairo_xlib_surface_set_image (void *abstract_surface,
ximage = XCreateImage (surface->dpy,
DefaultVisual(surface->dpy, DefaultScreen(surface->dpy)),
image->depth == 32 ? 24 : image->depth,
image->depth,
ZPixmap,
0,
image->data,