summaryrefslogtreecommitdiff
path: root/hw/xfree86/xf8_16bpp/cfb8_16.h
blob: eba4fc2e5cfcc561781f05010971ea51fb7f7367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* $XFree86$ */

#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;

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_16ScreenPrivateIndex].ptr)

#endif /* _CFB8_16_H */