From 0ccb519d36f8c9e566c49074f5b272a0239bc417 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Thu, 11 Mar 2004 22:42:47 +0000 Subject: [PATCH] * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs. (image_background, image_background_transparent): Fix prototypes. --- src/dispextern.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/dispextern.h b/src/dispextern.h index 0fb58d4a1d1..4fae030415a 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -50,17 +50,24 @@ typedef struct { #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 @@ void prepare_image_for_display P_ ((struct frame *, struct image *)); 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 -- 2.39.5