]> git.eshelyaron.com Git - emacs.git/commitdiff
(mac_load_query_font): Fix missing return value.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 5 Oct 2007 08:15:48 +0000 (08:15 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 5 Oct 2007 08:15:48 +0000 (08:15 +0000)
[USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
Add BLOCK_INPUT.

src/ChangeLog
src/macterm.c

index 4ab53305baf1440da3e05ceaaaa24234a169d3fc..eb45d47a8f49201a55c1a8f43965017bcfd43eec 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (mac_load_query_font): Fix missing return value.
+       [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
+       Add BLOCK_INPUT.
+
 2007-10-02  Richard Stallman  <rms@gnu.org>
 
        * xdisp.c (get_window_cursor_type): Implement documented behavior
index 01ac7328d6f25f33390c44513476acbe04d77bb1..f101899ddf9a268b2d2a29a3b8ccd2e2f6b2366a 100644 (file)
@@ -2275,6 +2275,9 @@ mac_define_fringe_bitmap (which, bits, h, wd)
 
   for (i = 0; i < h; i++)
     bits[i] = ~bits[i];
+
+  BLOCK_INPUT;
+
   provider = CGDataProviderCreateWithData (NULL, bits,
                                           sizeof (unsigned short) * h, NULL);
   if (provider)
@@ -2284,6 +2287,8 @@ mac_define_fringe_bitmap (which, bits, h, wd)
                                             provider, NULL, 0);
       CGDataProviderRelease (provider);
     }
+
+  UNBLOCK_INPUT;
 }
 
 static void
@@ -2294,7 +2299,11 @@ mac_destroy_fringe_bitmap (which)
     return;
 
   if (fringe_bmp[which])
-    CGImageRelease (fringe_bmp[which]);
+    {
+      BLOCK_INPUT;
+      CGImageRelease (fringe_bmp[which]);
+      UNBLOCK_INPUT;
+    }
   fringe_bmp[which] = 0;
 }
 #endif
@@ -8143,7 +8152,7 @@ mac_load_query_font (f, fontname)
 
       font_id = atsu_find_font_from_family_name (family);
       if (font_id == kATSUInvalidFontID)
-       return;
+       return NULL;
       size_fixed = Long2Fix (size);
       bold_p = (fontface & bold) != 0;
       italic_p = (fontface & italic) != 0;