Tue Dec 27 13:35:16 1994 Alexandre Julliard (julliard@lamisun.epfl.ch) * [*/Imakefile] All objects files are now kept in their respective directory. * [README] Rewrote most of it. * [objects/bitblt.c] Rewrote BitBlt() to look right in every case, while minimizing the impact on performance. Not really finished yet. * [objects/bitmap.c] [objects/dc.c] Fixed bug with pattern brushes. * [objects/clipping.c] [windows/painting.c] Fixes for logical coordinates. * [objects/color.c] [windows/graphics.c] Fixed GetPixel() to return the correct color, and made it faster. * [objects/region.c] Fixed bug in CombineRgn() when one of the region is empty. Fri Dec 22 01:42:57 MET 1994 Dag Asheim (dash@ifi.uio.no) * [Configure] Don't assume that expr handles '==', use '=' instead. Give a (hopefully informative) message if imake fails.
35 lines
936 B
C
35 lines
936 B
C
/*
|
|
* GDI bitmap definitions
|
|
*
|
|
* Copyright 1993, 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef BITMAP_H
|
|
#define BITMAP_H
|
|
|
|
#include <stdlib.h>
|
|
#include <X11/Xlib.h>
|
|
#include "windows.h"
|
|
|
|
/* objects/bitmap.c */
|
|
extern BOOL BITMAP_Init(void);
|
|
|
|
/* objects/dib.c */
|
|
extern int DIB_GetImageWidthBytes( int width, int depth );
|
|
extern int DIB_BitmapInfoSize( BITMAPINFO * info, WORD coloruse );
|
|
|
|
/* GCs used for B&W and color bitmap operations */
|
|
extern GC BITMAP_monoGC, BITMAP_colorGC;
|
|
|
|
#define BITMAP_GC(bmp) \
|
|
(((bmp)->bitmap.bmBitsPixel == 1) ? BITMAP_monoGC : BITMAP_colorGC)
|
|
|
|
#define XCREATEIMAGE(image,width,height,bpp) \
|
|
{ \
|
|
int width_bytes = DIB_GetImageWidthBytes( (width), (bpp) ); \
|
|
(image) = XCreateImage(display, DefaultVisualOfScreen(screen), \
|
|
(bpp), ZPixmap, 0, malloc( (height)*width_bytes ), \
|
|
(width), (height), 32, width_bytes ); \
|
|
}
|
|
|
|
#endif /* BITMAP_H */
|