diff options
| author | YAMAMOTO Mitsuharu | 2007-10-05 08:15:48 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-10-05 08:15:48 +0000 |
| commit | cb91e86ae525691cae9417e38b15d0f80be4ac91 (patch) | |
| tree | 9e2363693abc978c6a27ba5f7736281baf6832de /src | |
| parent | dde2f1a05fbebc386748f3105258d4820332cb39 (diff) | |
| download | emacs-cb91e86ae525691cae9417e38b15d0f80be4ac91.tar.gz emacs-cb91e86ae525691cae9417e38b15d0f80be4ac91.zip | |
(mac_load_query_font): Fix missing return value.
[USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
Add BLOCK_INPUT.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/macterm.c | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4ab53305baf..eb45d47a8f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-10-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | * macterm.c (mac_load_query_font): Fix missing return value. | ||
| 4 | [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap): | ||
| 5 | Add BLOCK_INPUT. | ||
| 6 | |||
| 1 | 2007-10-02 Richard Stallman <rms@gnu.org> | 7 | 2007-10-02 Richard Stallman <rms@gnu.org> |
| 2 | 8 | ||
| 3 | * xdisp.c (get_window_cursor_type): Implement documented behavior | 9 | * xdisp.c (get_window_cursor_type): Implement documented behavior |
diff --git a/src/macterm.c b/src/macterm.c index 01ac7328d6f..f101899ddf9 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -2275,6 +2275,9 @@ mac_define_fringe_bitmap (which, bits, h, wd) | |||
| 2275 | 2275 | ||
| 2276 | for (i = 0; i < h; i++) | 2276 | for (i = 0; i < h; i++) |
| 2277 | bits[i] = ~bits[i]; | 2277 | bits[i] = ~bits[i]; |
| 2278 | |||
| 2279 | BLOCK_INPUT; | ||
| 2280 | |||
| 2278 | provider = CGDataProviderCreateWithData (NULL, bits, | 2281 | provider = CGDataProviderCreateWithData (NULL, bits, |
| 2279 | sizeof (unsigned short) * h, NULL); | 2282 | sizeof (unsigned short) * h, NULL); |
| 2280 | if (provider) | 2283 | if (provider) |
| @@ -2284,6 +2287,8 @@ mac_define_fringe_bitmap (which, bits, h, wd) | |||
| 2284 | provider, NULL, 0); | 2287 | provider, NULL, 0); |
| 2285 | CGDataProviderRelease (provider); | 2288 | CGDataProviderRelease (provider); |
| 2286 | } | 2289 | } |
| 2290 | |||
| 2291 | UNBLOCK_INPUT; | ||
| 2287 | } | 2292 | } |
| 2288 | 2293 | ||
| 2289 | static void | 2294 | static void |
| @@ -2294,7 +2299,11 @@ mac_destroy_fringe_bitmap (which) | |||
| 2294 | return; | 2299 | return; |
| 2295 | 2300 | ||
| 2296 | if (fringe_bmp[which]) | 2301 | if (fringe_bmp[which]) |
| 2297 | CGImageRelease (fringe_bmp[which]); | 2302 | { |
| 2303 | BLOCK_INPUT; | ||
| 2304 | CGImageRelease (fringe_bmp[which]); | ||
| 2305 | UNBLOCK_INPUT; | ||
| 2306 | } | ||
| 2298 | fringe_bmp[which] = 0; | 2307 | fringe_bmp[which] = 0; |
| 2299 | } | 2308 | } |
| 2300 | #endif | 2309 | #endif |
| @@ -8143,7 +8152,7 @@ mac_load_query_font (f, fontname) | |||
| 8143 | 8152 | ||
| 8144 | font_id = atsu_find_font_from_family_name (family); | 8153 | font_id = atsu_find_font_from_family_name (family); |
| 8145 | if (font_id == kATSUInvalidFontID) | 8154 | if (font_id == kATSUInvalidFontID) |
| 8146 | return; | 8155 | return NULL; |
| 8147 | size_fixed = Long2Fix (size); | 8156 | size_fixed = Long2Fix (size); |
| 8148 | bold_p = (fontface & bold) != 0; | 8157 | bold_p = (fontface & bold) != 0; |
| 8149 | italic_p = (fontface & italic) != 0; | 8158 | italic_p = (fontface & italic) != 0; |