diff options
| author | YAMAMOTO Mitsuharu | 2005-02-03 11:58:25 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-02-03 11:58:25 +0000 |
| commit | e9859e269b8a6e8279b7bfc00193789198823711 (patch) | |
| tree | c76af982d4bc62f8bf36e31e4b86bbe624b13127 /src | |
| parent | 50b96379d7dde886f40e64386a9b0e8e37c9fb36 (diff) | |
| download | emacs-e9859e269b8a6e8279b7bfc00193789198823711.tar.gz emacs-e9859e269b8a6e8279b7bfc00193789198823711.zip | |
(mac_draw_string_common, x_make_frame_visible): Use
MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by the compiling OS
version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/macterm.c | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6dd4211364f..978614515e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by | ||
| 4 | the compiling OS version. | ||
| 5 | |||
| 6 | * macfns.c (x_create_tip_frame): Likewise. | ||
| 7 | |||
| 8 | * macterm.c (mac_draw_string_common, x_make_frame_visible): | ||
| 9 | Likewise. | ||
| 10 | |||
| 1 | 2005-02-03 Richard M. Stallman <rms@gnu.org> | 11 | 2005-02-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 12 | ||
| 3 | * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline. | 13 | * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline. |
diff --git a/src/macterm.c b/src/macterm.c index 9dfe67bd040..3e8bbd5033c 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -729,7 +729,7 @@ mac_draw_string_common (display, w, gc, x, y, buf, nchars, mode, | |||
| 729 | int nchars, mode, bytes_per_char; | 729 | int nchars, mode, bytes_per_char; |
| 730 | { | 730 | { |
| 731 | SetPortWindowPort (w); | 731 | SetPortWindowPort (w); |
| 732 | #ifdef MAC_OS_X_VERSION_10_2 | 732 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
| 733 | UInt32 textFlags, savedFlags; | 733 | UInt32 textFlags, savedFlags; |
| 734 | if (!NILP(Vmac_use_core_graphics)) { | 734 | if (!NILP(Vmac_use_core_graphics)) { |
| 735 | textFlags = kQDUseCGTextRendering; | 735 | textFlags = kQDUseCGTextRendering; |
| @@ -746,7 +746,7 @@ mac_draw_string_common (display, w, gc, x, y, buf, nchars, mode, | |||
| 746 | 746 | ||
| 747 | MoveTo (x, y); | 747 | MoveTo (x, y); |
| 748 | DrawText (buf, 0, nchars * bytes_per_char); | 748 | DrawText (buf, 0, nchars * bytes_per_char); |
| 749 | #ifdef MAC_OS_X_VERSION_10_2 | 749 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
| 750 | if (!NILP(Vmac_use_core_graphics)) | 750 | if (!NILP(Vmac_use_core_graphics)) |
| 751 | SwapQDTextFlags(savedFlags); | 751 | SwapQDTextFlags(savedFlags); |
| 752 | #endif | 752 | #endif |
| @@ -5451,7 +5451,7 @@ x_make_frame_visible (f) | |||
| 5451 | else | 5451 | else |
| 5452 | RepositionWindow (FRAME_MAC_WINDOW (f), | 5452 | RepositionWindow (FRAME_MAC_WINDOW (f), |
| 5453 | FRAME_MAC_WINDOW (sf), | 5453 | FRAME_MAC_WINDOW (sf), |
| 5454 | #ifdef MAC_OS_X_VERSION_10_2 | 5454 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
| 5455 | kWindowCascadeStartAtParentWindowScreen | 5455 | kWindowCascadeStartAtParentWindowScreen |
| 5456 | #else | 5456 | #else |
| 5457 | kWindowCascadeOnParentWindowScreen | 5457 | kWindowCascadeOnParentWindowScreen |