diff options
author | Soren Sandmann Pedersen <sandmann@redhat.com> | 2007-05-18 11:36:20 -0400 |
---|---|---|
committer | Soren Sandmann Pedersen <sandmann@redhat.com> | 2007-05-18 14:06:21 -0400 |
commit | 998164bac648756e5b5254aa36e075ae360d3972 (patch) | |
tree | dfe40f45a6d271cf68a500fb3801e2ca47fd9c68 /fb/fbpict.c | |
parent | a2e3614eb8f0fa198615df492b03ff36bc9c1121 (diff) |
Move fbCompositeGeneral() to fbpict.c and remove fbcompose.c
Diffstat (limited to 'fb/fbpict.c')
-rw-r--r-- | fb/fbpict.c | 63 |
1 files changed, 19 insertions, 44 deletions
diff --git a/fb/fbpict.c b/fb/fbpict.c index fc335ed38..324d9b272 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -1183,50 +1183,6 @@ out: pixman_image_unref (dest); } -#if 0 -#define SCANLINE_BUFFER_LENGTH 2048 - -static void -oldfbCompositeRectWrapper (CARD8 op, - PicturePtr pSrc, - PicturePtr pMask, - PicturePtr pDst, - INT16 xSrc, - INT16 ySrc, - INT16 xMask, - INT16 yMask, - INT16 xDst, - INT16 yDst, - CARD16 width, - CARD16 height) -{ - CARD32 _scanline_buffer[SCANLINE_BUFFER_LENGTH * 3]; - CARD32 *scanline_buffer = _scanline_buffer; - FbComposeData data; - - data.op = op; - data.src = pSrc; - data.mask = pMask; - data.dest = pDst; - data.xSrc = xSrc; - data.ySrc = ySrc; - data.xMask = xMask; - data.yMask = yMask; - data.xDest = xDst; - data.yDest = yDst; - data.width = width; - data.height = height; - - if (width > SCANLINE_BUFFER_LENGTH) - scanline_buffer = (CARD32 *) malloc(width * 3 * sizeof(CARD32)); - - fbCompositeRect (&data, scanline_buffer); - - if (scanline_buffer != _scanline_buffer) - free(scanline_buffer); -} -#endif - void fbWalkCompositeRegion (CARD8 op, PicturePtr pSrc, @@ -1932,6 +1888,25 @@ fbComposite (CARD8 op, srcRepeat, maskRepeat, func); } +void +fbCompositeGeneral (CARD8 op, + PicturePtr pSrc, + PicturePtr pMask, + PicturePtr pDst, + INT16 xSrc, + INT16 ySrc, + INT16 xMask, + INT16 yMask, + INT16 xDst, + INT16 yDst, + CARD16 width, + CARD16 height) +{ + return fbComposite (op, pSrc, pMask, pDst, + xSrc, ySrc, xMask, yMask, xDst, yDst, + width, height); +} + #endif /* RENDER */ Bool |