Thu Jan 5 13:37:42 1995 Cameron Heide (heide@ee.ualberta.ca) * [memory/global.c] GlobalCompact should now return the correct value when the largest run of free blocks includes the last block. * [windows/mdi.c] Tiling and cascading windows without any MDI children should no longer crash (assuming no-op is the correct thing to do). Sun Jan 1 23:30:25 1995 Fons Botman <botman@rabo.nl> * [objects/font.c] GetTextExtentPoint: fixed debug output, str is counted string, not zero terminated. * [if1632/relay.c] DLLRelay: when debugging_stack got segv, added upper bound for stack dump.
46 lines
1.3 KiB
C
46 lines
1.3 KiB
C
/*
|
|
* GDI bitmap definitions
|
|
*
|
|
* Copyright 1993, 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_BITMAP_H
|
|
#define __WINE_BITMAP_H
|
|
|
|
#include "gdi.h"
|
|
|
|
/* GDI logical bitmap object */
|
|
typedef struct
|
|
{
|
|
GDIOBJHDR header;
|
|
BITMAP bitmap;
|
|
Pixmap pixmap;
|
|
SIZE size; /* For SetBitmapDimension() */
|
|
} BITMAPOBJ;
|
|
|
|
/* 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 ); \
|
|
}
|
|
|
|
/* objects/bitmap.c */
|
|
extern BOOL BITMAP_Init(void);
|
|
extern int BITMAP_GetObject( BITMAPOBJ * bmp, int count, LPSTR buffer );
|
|
extern BOOL BITMAP_DeleteObject( HBITMAP hbitmap, BITMAPOBJ * bitmap );
|
|
extern HBITMAP BITMAP_SelectObject( HDC hdc, DC * dc, HBITMAP hbitmap,
|
|
BITMAPOBJ * bmp );
|
|
|
|
/* objects/dib.c */
|
|
extern int DIB_GetImageWidthBytes( int width, int depth );
|
|
extern int DIB_BitmapInfoSize( BITMAPINFO * info, WORD coloruse );
|
|
|
|
#endif /* __WINE_BITMAP_H */
|