Turn boxes and regions into typedefs for pixman types
This commit is contained in:
parent
8e56f5be4b
commit
e037052ac5
|
@ -239,7 +239,7 @@ extern int Ones(
|
|||
unsigned long /*mask*/);
|
||||
|
||||
typedef struct _xPoint *DDXPointPtr;
|
||||
typedef struct _Box *BoxPtr;
|
||||
typedef struct pixman_box16 *BoxPtr;
|
||||
typedef struct _xEvent *xEventPtr;
|
||||
typedef struct _xRectangle *xRectanglePtr;
|
||||
typedef struct _GrabRec *GrabPtr;
|
||||
|
|
|
@ -51,12 +51,11 @@ SOFTWARE.
|
|||
#include "misc.h"
|
||||
#include <X11/Xprotostr.h>
|
||||
#include "gc.h"
|
||||
#include <pixman/pixman.h>
|
||||
|
||||
typedef xPoint DDXPointRec;
|
||||
|
||||
typedef struct _Box {
|
||||
short x1, y1, x2, y2;
|
||||
} BoxRec;
|
||||
typedef struct pixman_box16 BoxRec;
|
||||
|
||||
typedef union _DevUnion {
|
||||
pointer ptr;
|
||||
|
|
|
@ -48,7 +48,7 @@ SOFTWARE.
|
|||
#ifndef REGIONSTRUCT_H
|
||||
#define REGIONSTRUCT_H
|
||||
|
||||
typedef struct _Region RegionRec, *RegionPtr;
|
||||
typedef struct pixman_region16 RegionRec, *RegionPtr;
|
||||
|
||||
#include "miscstruct.h"
|
||||
|
||||
|
@ -64,16 +64,7 @@ typedef struct _Region RegionRec, *RegionPtr;
|
|||
* clip region
|
||||
*/
|
||||
|
||||
typedef struct _RegData {
|
||||
long size;
|
||||
long numRects;
|
||||
/* BoxRec rects[size]; in memory but not explicitly declared */
|
||||
} RegDataRec, *RegDataPtr;
|
||||
|
||||
struct _Region {
|
||||
BoxRec extents;
|
||||
RegDataPtr data;
|
||||
};
|
||||
typedef struct pixman_region16_data RegDataRec, *RegDataPtr;
|
||||
|
||||
extern BoxRec miEmptyBox;
|
||||
extern RegDataRec miEmptyData;
|
||||
|
|
Loading…
Reference in New Issue
Block a user