Mercurial > emacs
changeset 58268:fc159de41e11
(Fdefine_fringe_bitmap): Always set 'h'. Simplify.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 16 Nov 2004 15:41:54 +0000 |
parents | eb96fac40fc7 |
children | 46739a0845d3 |
files | src/fringe.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fringe.c Tue Nov 16 15:41:41 2004 +0000 +++ b/src/fringe.c Tue Nov 16 15:41:54 2004 +0000 @@ -1204,7 +1204,6 @@ (bitmap, bits, height, width, align) Lisp_Object bitmap, bits, height, width, align; { - Lisp_Object len; int n, h, i, j; unsigned short *b; struct fringe_bitmap fb, *xfb; @@ -1212,20 +1211,21 @@ CHECK_SYMBOL (bitmap); - if (!STRINGP (bits) && !VECTORP (bits)) - bits = wrong_type_argument (Qstringp, bits); - - len = Flength (bits); + if (STRINGP (bits)) + h = SCHARS (bits); + else if (VECTORP (bits)) + h = XVECTOR (bits)->size; + else + bits = wrong_type_argument (Qsequencep, bits); if (NILP (height)) - h = fb.height = XINT (len); + fb.height = h; else { CHECK_NUMBER (height); fb.height = min (XINT (height), 255); - if (fb.height > XINT (len)) + if (fb.height > h) { - h = XINT (len); fill1 = (fb.height - h) / 2; fill2 = fb.height - h - fill1; }