2 * GDI bitmap definitions
4 * Copyright 1993, 1994 Alexandre Julliard
14 /* objects/bitmap.c */
15 extern BOOL
BITMAP_Init(void);
18 extern int DIB_GetImageWidthBytes( int width
, int depth
);
19 extern int DIB_BitmapInfoSize( BITMAPINFO
* info
, WORD coloruse
);
21 /* GCs used for B&W and color bitmap operations */
22 extern GC BITMAP_monoGC
, BITMAP_colorGC
;
24 #define BITMAP_GC(bmp) \
25 (((bmp)->bitmap.bmBitsPixel == 1) ? BITMAP_monoGC : BITMAP_colorGC)
27 #define XCREATEIMAGE(image,width,height,bpp) \
29 int width_bytes = DIB_GetImageWidthBytes( (width), (bpp) ); \
30 (image) = XCreateImage(display, DefaultVisualOfScreen(screen), \
31 (bpp), ZPixmap, 0, malloc( (height)*width_bytes ), \
32 (width), (height), 32, width_bytes ); \