mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 16:16:08 +00:00
7ff1c415b4
Tue May 20 19:20:23 1997 Pablo Saratxaga <srtxg@linux.chanae.stben.be> * [resources/sysres_Es.rc] Updated CHOOSE_FONT, CHOOSE_COLOR, EDITMENU for Spanish. Mon May 19 22:06:04 1997 Michiel van Loon <mfvl@xs4all.nl> * [multimedia/mcistring.c] Corrected bug for device!element command. * [multimedia/mmaux.c] Replaced printf and fprintf calls by dprintf_mmaux. * [multimedia/audio.c] Corrected debugmessage in wodGetVolume. Include code for MCI_CUE command. * [multimedia/mmsystem.c] Added the MCIERR_SEQ error messages. * [if1632/mmsystem.spec] [multimedia/audio.c] [multimedia/mmsystem.c] Changed call structure of waveInOpen and waveOutOpen. * [multimedia/mmsystem.c] [multimedia/audio.c] [multimedia/midi.c] [multimedia/mmaux.c] [multimedia/mcicda.c] [multimedia/mcianim.c] [multimedia/mcistring.c] [include/mmsystem.h] Changed the deviceID scheme. * [include/queue.h] [include/win16drv.h] [msdos/dpmi.c] [windows/user.c] [windows/driver.c] [graphic/wing.c] [graphics/x11drv/bitmap.c] [misc/wsprintf.c] [misc/crtdll.c] Removed compiler warnings. Mon May 19 01:32:24 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu> * [controls/menu.c] [windows/win.c] [windows/graphics.c] Popup menu shade, new system menu implementation, ModifyMenu() fixes, better check mark painting. * [windows/mdi.c] MDI client fix for Win32. Sat May 17 12:02:11 1997 Albrecht Kleine <kleine@ak.sax.de> * [objects/metafile.c] Added handling of META_DIBBITBLT, META_SETTEXTJUSTIFICATION plus bugfix in META_EXTTEXTOUT (start_of_text etc.) Thu May 15 22:52:00 1997 Jimen Ching <jching@flex.com> * [loader/ne_image.c] Make sure dgroup is valid by checking pModule->flags consistently.
67 lines
1.8 KiB
C
67 lines
1.8 KiB
C
/*
|
|
* GDI bitmap definitions
|
|
*
|
|
* Copyright 1993, 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_BITMAP_H
|
|
#define __WINE_BITMAP_H
|
|
|
|
#include "gdi.h"
|
|
#include "xmalloc.h"
|
|
|
|
#ifdef PRELIMINARY_WING16_SUPPORT
|
|
/* FIXME: this doesn't belong here */
|
|
#include <X11/extensions/XShm.h>
|
|
|
|
typedef struct
|
|
{
|
|
XShmSegmentInfo si;
|
|
SEGPTR bits;
|
|
} __ShmBitmapCtl;
|
|
|
|
#endif
|
|
|
|
/* GDI logical bitmap object */
|
|
typedef struct
|
|
{
|
|
GDIOBJHDR header;
|
|
BITMAP16 bitmap;
|
|
Pixmap pixmap;
|
|
SIZE16 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 BITMAP_WIDTH_BYTES(width,bpp) \
|
|
(((bpp) == 24) ? (width) * 4 : ((width) * (bpp) + 15) / 16 * 2)
|
|
|
|
#define XCREATEIMAGE(image,width,height,bpp) \
|
|
{ \
|
|
int width_bytes = DIB_GetXImageWidthBytes( (width), (bpp) ); \
|
|
(image) = XCreateImage(display, DefaultVisualOfScreen(screen), \
|
|
(bpp), ZPixmap, 0, xmalloc( (height)*width_bytes ),\
|
|
(width), (height), 32, width_bytes ); \
|
|
}
|
|
|
|
/* objects/bitmap.c */
|
|
extern BOOL32 BITMAP_Init(void);
|
|
extern INT16 BITMAP_GetObject16( BITMAPOBJ * bmp, INT16 count, LPVOID buffer );
|
|
extern INT32 BITMAP_GetObject32( BITMAPOBJ * bmp, INT32 count, LPVOID buffer );
|
|
extern BOOL32 BITMAP_DeleteObject( HBITMAP16 hbitmap, BITMAPOBJ * bitmap );
|
|
|
|
/* objects/dib.c */
|
|
extern int DIB_GetDIBWidthBytes( int width, int depth );
|
|
extern int DIB_GetXImageWidthBytes( int width, int depth );
|
|
extern int DIB_BitmapInfoSize( BITMAPINFO * info, WORD coloruse );
|
|
|
|
/* objects/oembitmap.c */
|
|
extern HBITMAP16 OBM_LoadBitmap( WORD id );
|
|
extern HGLOBAL16 OBM_LoadCursorIcon( WORD id, BOOL32 fCursor );
|
|
|
|
#endif /* __WINE_BITMAP_H */
|