48514fee3c
framebuffer formats except cfb and the overlay modes should work, and r128 and radeon need to be loaded from the ati driver (both issues to be fixed soon). Tested on i740, s3virge, mach64, tdfx, vesa, and vga drivers. elfloader users shouldn't be affected.
71 lines
1.3 KiB
C
71 lines
1.3 KiB
C
/* $XFree86: xc/programs/Xserver/hw/xfree86/xf8_16bpp/cfb8_16.h,v 1.1 1999/01/31 12:22:16 dawes Exp $ */
|
|
|
|
#ifndef _CFB8_16_H
|
|
#define _CFB8_16_H
|
|
|
|
#include "regionstr.h"
|
|
#include "windowstr.h"
|
|
|
|
typedef struct {
|
|
pointer pix8;
|
|
int width8;
|
|
pointer pix16;
|
|
int width16;
|
|
unsigned char key;
|
|
} cfb8_16ScreenRec, *cfb8_16ScreenPtr;
|
|
|
|
extern int cfb8_16ScreenPrivateIndex; /* XXX */
|
|
extern int cfb8_16GetScreenPrivateIndex(void);
|
|
|
|
Bool
|
|
cfb8_16ScreenInit (
|
|
ScreenPtr pScreen,
|
|
pointer pbits16,
|
|
pointer pbits8,
|
|
int xsize, int ysize,
|
|
int dpix, int dpiy,
|
|
int width16,
|
|
int width8
|
|
);
|
|
|
|
void
|
|
cfb8_16PaintWindow (
|
|
WindowPtr pWin,
|
|
RegionPtr pRegion,
|
|
int what
|
|
);
|
|
|
|
Bool cfb8_16CreateWindow(WindowPtr pWin);
|
|
Bool cfb8_16DestroyWindow(WindowPtr pWin);
|
|
|
|
Bool
|
|
cfb8_16PositionWindow(
|
|
WindowPtr pWin,
|
|
int x, int y
|
|
);
|
|
|
|
void
|
|
cfb8_16CopyWindow(
|
|
WindowPtr pWin,
|
|
DDXPointRec ptOldOrg,
|
|
RegionPtr prgnSrc
|
|
);
|
|
|
|
Bool
|
|
cfb8_16ChangeWindowAttributes(
|
|
WindowPtr pWin,
|
|
unsigned long mask
|
|
);
|
|
|
|
void
|
|
cfb8_16WindowExposures(
|
|
WindowPtr pWin,
|
|
RegionPtr pReg,
|
|
RegionPtr pOtherReg
|
|
);
|
|
|
|
#define CFB8_16_GET_SCREEN_PRIVATE(pScreen)\
|
|
(cfb8_16ScreenPtr)((pScreen)->devPrivates[cfb8_16GetScreenPrivateIndex()].ptr)
|
|
|
|
#endif /* _CFB8_16_H */
|