]> git.eshelyaron.com Git - emacs.git/commitdiff
(load_pixmap): Handle bitmap_id < 0. F is a FRAME_PTR.
authorRichard M. Stallman <rms@gnu.org>
Sun, 13 Nov 1994 19:07:26 +0000 (19:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 13 Nov 1994 19:07:26 +0000 (19:07 +0000)
src/xfaces.c

index 66f517b72e19017c2e46e1ba89a99ab6c7c2afd1..e929c204bdd8fdeca0b9423c8dd3152c422c1109 100644 (file)
@@ -415,7 +415,7 @@ DEFUN ("pixmap-spec-p", Fpixmap_spec_p, Spixmap_spec_p, 1, 1, 0,
 
 static long
 load_pixmap (f, name, w_ptr, h_ptr)
-     FRAME_PTR *f;
+     FRAME_PTR f;
      Lisp_Object name;
      unsigned int *w_ptr, *h_ptr;
 {
@@ -452,8 +452,8 @@ load_pixmap (f, name, w_ptr, h_ptr)
     }
   UNBLOCK_INPUT;
 
-  if (! bitmap_id)
-    Fsignal (Qerror, Fcons (build_string ("undefined bitmap"),
+  if (bitmap_id < 0)
+    Fsignal (Qerror, Fcons (build_string ("invalid or undefined bitmap"),
                            Fcons (name, Qnil)));
 
   *w_ptr = x_bitmap_width (f, bitmap_id);