diff options
| author | YAMAMOTO Mitsuharu | 2008-05-02 09:39:12 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2008-05-02 09:39:12 +0000 |
| commit | f5d13fd80a641339af86e00ba518ea2d5a6367f2 (patch) | |
| tree | 93e659195872de1158202fb32617d0e186d2ac4a | |
| parent | 2ff0845e68e55250f4c7125757cb3586c9aca052 (diff) | |
| download | emacs-f5d13fd80a641339af86e00ba518ea2d5a6367f2.tar.gz emacs-f5d13fd80a641339af86e00ba518ea2d5a6367f2.zip | |
(Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
| -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; | |||
| 152 | #define mac_get_global_mouse GetGlobalMouse | 152 | #define mac_get_global_mouse GetGlobalMouse |
| 153 | #define mac_is_window_toolbar_visible IsWindowToolbarVisible | 153 | #define mac_is_window_toolbar_visible IsWindowToolbarVisible |
| 154 | #define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h) | 154 | #define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h) |
| 155 | |||
| 156 | #if USE_MAC_IMAGE_IO | ||
| 157 | typedef struct _XImage | ||
| 158 | { | ||
| 159 | int width, height; /* size of image */ | ||
| 160 | char *data; /* pointer to image data */ | ||
| 161 | int bytes_per_line; /* accelarator to next line */ | ||
| 162 | int bits_per_pixel; /* bits per pixel (ZPixmap) */ | ||
| 163 | } *Pixmap; | ||
| 164 | #else | ||
| 155 | typedef GWorldPtr Pixmap; | 165 | typedef GWorldPtr Pixmap; |
| 166 | #endif | ||
| 156 | 167 | ||
| 157 | #define Cursor ThemeCursor | 168 | #define Cursor ThemeCursor |
| 158 | #define No_Cursor (-1) | 169 | #define No_Cursor (-1) |