Mercurial > emacs
changeset 9902:32ed712a45a3
(load_pixmap): Handle bitmap_id < 0. F is a FRAME_PTR.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 13 Nov 1994 19:07:26 +0000 |
parents | 9a35aeb4a0db |
children | 133888d97e98 |
files | src/xfaces.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Sun Nov 13 17:35:48 1994 +0000 +++ b/src/xfaces.c Sun Nov 13 19:07:26 1994 +0000 @@ -415,7 +415,7 @@ 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 @@ } 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);