diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2008-05-02 09:39:12 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2008-05-02 09:39:12 +0000 |
commit | f5d13fd80a641339af86e00ba518ea2d5a6367f2 (patch) | |
tree | 93e659195872de1158202fb32617d0e186d2ac4a /src | |
parent | 2ff0845e68e55250f4c7125757cb3586c9aca052 (diff) | |
download | emacs-f5d13fd80a641339af86e00ba518ea2d5a6367f2.tar.gz |
(Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
Diffstat (limited to 'src')
-rw-r--r-- | src/macgui.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h index c1558e98bfe..3bfea33cffc 100644 --- a/src/macgui.h +++ b/src/macgui.h @@ -152,7 +152,18 @@ typedef int Selection; #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) |