fb: shut up two compiler warnings.

This commit is contained in:
Peter Hutterer 2008-05-20 10:54:32 +09:30
parent 99d28c3ef3
commit e73a03d589
2 changed files with 3 additions and 1 deletions

View File

@ -77,6 +77,8 @@ fbPolyArc (DrawablePtr pDrawable,
fbGetDrawable (pDrawable, dst, dstStride, dstBpp, dstXoff, dstYoff);
#ifdef FB_ACCESS_WRAPPER
wrapped = 1;
#else
wrapped = 0;
#endif
while (narcs--)
{

View File

@ -292,7 +292,7 @@ create_bits_picture (PicturePtr pict,
fbGetDrawable (pict->pDrawable, bits, stride, bpp, xoff, yoff);
bits = (CARD8*)bits + yoff * stride * sizeof(FbBits) + xoff * (bpp / 8);
bits = (FbBits*)((CARD8*)bits + yoff * stride * sizeof(FbBits) + xoff * (bpp / 8));
image = pixman_image_create_bits (
pict->format,