Mercurial > emacs
changeset 54362:64ae6f2c8fee
* dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
(image_background, image_background_transparent): Fix prototypes.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 11 Mar 2004 22:42:47 +0000 |
parents | 63ef4a00326a |
children | 58fe37b82d00 |
files | src/dispextern.h |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispextern.h Thu Mar 11 22:39:29 2004 +0000 +++ b/src/dispextern.h Thu Mar 11 22:42:47 2004 +0000 @@ -50,17 +50,24 @@ #ifdef HAVE_X_WINDOWS typedef struct x_display_info Display_Info; +typedef XImage * XImagePtr; +typedef XImagePtr XImagePtr_or_DC; #define NativeRectangle XRectangle #endif #ifdef HAVE_NTGUI #include "w32gui.h" typedef struct w32_display_info Display_Info; +typedef XImage *XImagePtr; +typedef HDC XImagePtr_or_DC; #endif #ifdef HAVE_CARBON #include "macgui.h" typedef struct mac_display_info Display_Info; +/* Mac equivalent of XImage. */ +typedef Pixmap XImagePtr; +typedef XImagePtr XImagePtr_or_DC; #endif #ifndef NativeRectangle @@ -2623,9 +2630,9 @@ int lookup_image P_ ((struct frame *, Lisp_Object)); unsigned long image_background P_ ((struct image *, struct frame *, - XImage *ximg)); + XImagePtr_or_DC ximg)); int image_background_transparent P_ ((struct image *, struct frame *, - XImage *mask)); + XImagePtr_or_DC mask)); #endif