]> git.eshelyaron.com Git - emacs.git/commitdiff
(XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 22 Jul 2008 03:01:23 +0000 (03:01 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 22 Jul 2008 03:01:23 +0000 (03:01 +0000)
src/ChangeLog
src/macterm.c

index 3c9ac5a8effb344330056566163fdc3532d43c0f..297dca6cbf45bed75dcdf3b9eba15615366f73d9 100644 (file)
@@ -1,3 +1,7 @@
+2008-07-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
+
 2008-07-21  Ami Fischman  <ami@fischman.org>  (tiny change)
 
        * print.c (print_object): Check print_depth before searching for
index f73050788c20393406378b2f2f01ce0d788c75f5..8a0b2d61846801b8855b70339802bc94c396e498 100644 (file)
@@ -422,10 +422,7 @@ XDrawLine (display, p, gc, x1, y1, x2, y2)
       color_space = NULL;
       alpha_info = kCGImageAlphaOnly;
     }
-  if (color_space == NULL)
-    return;
-  context = CGBitmapContextCreate (ximg->data, ximg->width,
-                                  ximg->height, 8,
+  context = CGBitmapContextCreate (ximg->data, ximg->width, ximg->height, 8,
                                   ximg->bytes_per_line, color_space,
                                   alpha_info);
   if (ximg->bits_per_pixel == 32)