diff options
| author | YAMAMOTO Mitsuharu | 2008-03-29 00:46:11 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2008-03-29 00:46:11 +0000 |
| commit | 693b73c4189a7c30f6dd62370b93d00d807d0f4c (patch) | |
| tree | 8b7cfb335e533eb13e49fc754f82c8a766179023 /src | |
| parent | b0f9edf7d3120f0b30dee8ad7001c51bbbb18c84 (diff) | |
| download | emacs-693b73c4189a7c30f6dd62370b93d00d807d0f4c.tar.gz emacs-693b73c4189a7c30f6dd62370b93d00d807d0f4c.zip | |
Replace WindowPtr with WindowRef.
(USE_MAC_TOOLBAR): New define.
(USE_CG_DRAWING): Don't require USE_ATSUI.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macgui.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/macgui.h b/src/macgui.h index e79e74b7de4..b4c013f0dfa 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -71,7 +71,7 @@ typedef unsigned long Time; | |||
| 71 | #undef Z | 71 | #undef Z |
| 72 | #define Z (current_buffer->text->z) | 72 | #define Z (current_buffer->text->z) |
| 73 | #else /* not HAVE_CARBON */ | 73 | #else /* not HAVE_CARBON */ |
| 74 | #include <QuickDraw.h> /* for WindowPtr */ | 74 | #include <QuickDraw.h> /* for WindowRef */ |
| 75 | #include <QDOffscreen.h> /* for GWorldPtr */ | 75 | #include <QDOffscreen.h> /* for GWorldPtr */ |
| 76 | #include <Appearance.h> /* for ThemeCursor */ | 76 | #include <Appearance.h> /* for ThemeCursor */ |
| 77 | #include <Windows.h> | 77 | #include <Windows.h> |
| @@ -98,7 +98,7 @@ typedef unsigned long Time; | |||
| 98 | /* Whether to use Quartz 2D routines for drawing operations other than | 98 | /* Whether to use Quartz 2D routines for drawing operations other than |
| 99 | texts. */ | 99 | texts. */ |
| 100 | #ifndef USE_CG_DRAWING | 100 | #ifndef USE_CG_DRAWING |
| 101 | #if USE_ATSUI && MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 | 101 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
| 102 | #define USE_CG_DRAWING 1 | 102 | #define USE_CG_DRAWING 1 |
| 103 | #endif | 103 | #endif |
| 104 | #endif | 104 | #endif |
| @@ -117,7 +117,14 @@ typedef unsigned long Time; | |||
| 117 | #endif | 117 | #endif |
| 118 | #endif | 118 | #endif |
| 119 | 119 | ||
| 120 | typedef WindowPtr Window; | 120 | /* Whether to use HIToolbar. */ |
| 121 | #ifndef USE_MAC_TOOLBAR | ||
| 122 | #if USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED != 1020 | ||
| 123 | #define USE_MAC_TOOLBAR 1 | ||
| 124 | #endif | ||
| 125 | #endif | ||
| 126 | |||
| 127 | typedef WindowRef Window; | ||
| 121 | typedef GWorldPtr Pixmap; | 128 | typedef GWorldPtr Pixmap; |
| 122 | 129 | ||
| 123 | #define Cursor ThemeCursor | 130 | #define Cursor ThemeCursor |