Fix fbGetDrawable

Patch from Billy Biggs <vektor@dumbterm.net>.
This commit is contained in:
Jeff Muizelaar 2005-08-05 12:26:33 +00:00
parent 3ef2488265
commit ec93e241b0
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2005-08-05 Jeff Muizelaar <jeff@infidigm.net>
* src/pixman-xserver-compat.h: Fix fbGetDrawable
Patch from Billy Biggs <vektor@dumbterm.net>.
2005-08-05 Jeff Muizelaar <jeff@infidigm.net>
* src/icint.h: Fix some of the 4 bit per channel PICT definitions

View file

@ -78,10 +78,10 @@ typedef pixman_triangle_t xTriangle;
/* XXX: We changed some function and field names which makes for some
* ugly hacks... */
#define pDrawable pixels
#define fbGetDrawable(pDrawable, pointer, stride, bpp, xoff, yoff) { \
#define fbGetDrawable(pDrawable, buf, outstride, outbpp, xoff, yoff) { \
(buf) = (pDrawable)->data; \
(stride) = ((int) pDrawable->stride) / sizeof (pixman_bits_t); \
(bpp) = (pDrawable)->bpp; \
(outstride) = ((int) pDrawable->stride) / sizeof (pixman_bits_t); \
(outbpp) = (pDrawable)->bpp; \
(xoff) = 0; \
(yoff) = 0; \
}