xserver-multidpi/hw/xfree86/xf8_32bpp/cfbcpyplane.c
Daniel Stone 292c4cff26 Fix includes right throughout the Xserver tree:
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h;
change "foo.h", "extensions/foo.h" and "X11/foo.h" to
    <X11/extensions/foo.h> for extension headers, e.g. Xv.h;
change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2005-04-20 12:25:48 +00:00

40 lines
820 B
C

/* $XFree86$ */
#include <X11/X.h>
#include <X11/Xmd.h>
#include <X11/Xproto.h>
#include "gcstruct.h"
#include "windowstr.h"
#include "scrnintstr.h"
#include "pixmapstr.h"
#include "regionstr.h"
#define PSZ 8
#include "cfb.h"
#undef PSZ
#include "cfb32.h"
#include "cfb8_32.h"
#include "mi.h"
RegionPtr
cfb8_32CopyPlane(
DrawablePtr pSrc,
DrawablePtr pDst,
GCPtr pGC,
int srcx, int srcy,
int width, int height,
int dstx, int dsty,
unsigned long bitPlane
){
/* There's actually much more to it than this */
if((pDst->bitsPerPixel == 8) && (pSrc->bitsPerPixel != 32)){
return(cfbCopyPlane(pSrc, pDst,
pGC, srcx, srcy, width, height, dstx, dsty, bitPlane));
}
return(miCopyPlane (pSrc, pDst,
pGC, srcx, srcy, width, height, dstx, dsty, bitPlane));
}