# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1209721152 0 # Node ID 5eb403dc8e2050b3f4592a5074f49c1447897893 # Parent d4410031dce71b2f82e1bdcc3daa6b0bdeb8d0a0 (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O. diff -r d4410031dce7 -r 5eb403dc8e20 src/macgui.h --- a/src/macgui.h Fri May 02 09:39:01 2008 +0000 +++ b/src/macgui.h Fri May 02 09:39:12 2008 +0000 @@ -152,7 +152,18 @@ #define mac_get_global_mouse GetGlobalMouse #define mac_is_window_toolbar_visible IsWindowToolbarVisible #define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h) + +#if USE_MAC_IMAGE_IO +typedef struct _XImage +{ + int width, height; /* size of image */ + char *data; /* pointer to image data */ + int bytes_per_line; /* accelarator to next line */ + int bits_per_pixel; /* bits per pixel (ZPixmap) */ +} *Pixmap; +#else typedef GWorldPtr Pixmap; +#endif #define Cursor ThemeCursor #define No_Cursor (-1)