diff options
| author | Kim F. Storm | 2004-09-29 11:58:05 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-09-29 11:58:05 +0000 |
| commit | 983f1af9dde017d0d22bcc6c2b3c7fc22aae7bb9 (patch) | |
| tree | ff17e9a5a8d12e0f54baf21347b34b9c11cdbadf /src | |
| parent | 4cce0ab79faf06a1fcb0c533c9062143c1daa777 (diff) | |
| download | emacs-983f1af9dde017d0d22bcc6c2b3c7fc22aae7bb9.tar.gz emacs-983f1af9dde017d0d22bcc6c2b3c7fc22aae7bb9.zip | |
(handle_single_display_prop): Use lookup_fringe_bitmap.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2577bc46efb..ddd247b3430 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -307,7 +307,6 @@ extern Lisp_Object Qheight; | |||
| 307 | extern Lisp_Object QCwidth, QCheight, QCascent; | 307 | extern Lisp_Object QCwidth, QCheight, QCascent; |
| 308 | extern Lisp_Object Qscroll_bar; | 308 | extern Lisp_Object Qscroll_bar; |
| 309 | extern Lisp_Object Qcursor; | 309 | extern Lisp_Object Qcursor; |
| 310 | extern Lisp_Object Qfringe; | ||
| 311 | 310 | ||
| 312 | /* Non-nil means highlight trailing whitespace. */ | 311 | /* Non-nil means highlight trailing whitespace. */ |
| 313 | 312 | ||
| @@ -3569,6 +3568,7 @@ handle_single_display_prop (it, prop, object, position, | |||
| 3569 | && CONSP (XCDR (prop))) | 3568 | && CONSP (XCDR (prop))) |
| 3570 | { | 3569 | { |
| 3571 | unsigned face_id = DEFAULT_FACE_ID; | 3570 | unsigned face_id = DEFAULT_FACE_ID; |
| 3571 | int fringe_bitmap; | ||
| 3572 | 3572 | ||
| 3573 | /* Save current settings of IT so that we can restore them | 3573 | /* Save current settings of IT so that we can restore them |
| 3574 | when we are finished with the glyph property value. */ | 3574 | when we are finished with the glyph property value. */ |
| @@ -3580,8 +3580,7 @@ handle_single_display_prop (it, prop, object, position, | |||
| 3580 | #ifdef HAVE_WINDOW_SYSTEM | 3580 | #ifdef HAVE_WINDOW_SYSTEM |
| 3581 | value = XCAR (XCDR (prop)); | 3581 | value = XCAR (XCDR (prop)); |
| 3582 | if (!SYMBOLP (value) | 3582 | if (!SYMBOLP (value) |
| 3583 | || (value = Fget (value, Qfringe), | 3583 | || !(fringe_bitmap = lookup_fringe_bitmap (value))) |
| 3584 | !valid_fringe_bitmap_p (value))) | ||
| 3585 | return 0; | 3584 | return 0; |
| 3586 | 3585 | ||
| 3587 | if (CONSP (XCDR (XCDR (prop)))) | 3586 | if (CONSP (XCDR (XCDR (prop)))) |
| @@ -3610,12 +3609,12 @@ handle_single_display_prop (it, prop, object, position, | |||
| 3610 | 3609 | ||
| 3611 | if (EQ (XCAR (prop), Qleft_fringe)) | 3610 | if (EQ (XCAR (prop), Qleft_fringe)) |
| 3612 | { | 3611 | { |
| 3613 | it->left_user_fringe_bitmap = XINT (value); | 3612 | it->left_user_fringe_bitmap = fringe_bitmap; |
| 3614 | it->left_user_fringe_face_id = face_id; | 3613 | it->left_user_fringe_face_id = face_id; |
| 3615 | } | 3614 | } |
| 3616 | else | 3615 | else |
| 3617 | { | 3616 | { |
| 3618 | it->right_user_fringe_bitmap = XINT (value); | 3617 | it->right_user_fringe_bitmap = fringe_bitmap; |
| 3619 | it->right_user_fringe_face_id = face_id; | 3618 | it->right_user_fringe_face_id = face_id; |
| 3620 | } | 3619 | } |
| 3621 | #endif /* HAVE_WINDOW_SYSTEM */ | 3620 | #endif /* HAVE_WINDOW_SYSTEM */ |