Mercurial > emacs
comparison src/xdisp.c @ 2742:7800e6a86421
* xdisp.c (display_text_line): Make face-handling code conditional
on HAVE_X_WINDOWS macro. Perhaps this isn't the best approach,
but it'll do for now.
* xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
macro here; that's x-specific. Just don't pass the second
argument.
* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
use F's default face.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 11 May 1993 02:47:46 +0000 |
parents | 76afd3322533 |
children | af06c054b48f |
comparison
equal
deleted
inserted
replaced
2741:1d72336294c6 | 2742:7800e6a86421 |
---|---|
1699 cursor_hpos = p1 - startp; | 1699 cursor_hpos = p1 - startp; |
1700 } | 1700 } |
1701 | 1701 |
1702 pause = end; | 1702 pause = end; |
1703 | 1703 |
1704 #ifdef HAVE_X_WINDOWS | |
1704 /* Did we hit a face change? Figure out what face we should | 1705 /* Did we hit a face change? Figure out what face we should |
1705 use now. We also hit this the first time through the | 1706 use now. We also hit this the first time through the |
1706 loop, to see what face we should start with. */ | 1707 loop, to see what face we should start with. */ |
1707 if (pos == next_face_change) | 1708 if (pos == next_face_change) |
1708 { | 1709 { |
1709 current_face = compute_char_face (f, w, pos, &next_face_change); | 1710 current_face = compute_char_face (f, w, pos, &next_face_change); |
1710 if (pos < next_face_change && next_face_change < pause) | 1711 if (pos < next_face_change && next_face_change < pause) |
1711 pause = next_face_change; | 1712 pause = next_face_change; |
1712 } | 1713 } |
1714 #endif | |
1713 | 1715 |
1714 /* Wouldn't you hate to read the next line to someone over | 1716 /* Wouldn't you hate to read the next line to someone over |
1715 the phone? */ | 1717 the phone? */ |
1716 if (pos < point && point < pause) | 1718 if (pos < point && point < pause) |
1717 pause = point; | 1719 pause = point; |
1814 if (p1 >= startp && p1 < endp) | 1816 if (p1 >= startp && p1 < endp) |
1815 *p1 = MAKE_GLYPH ((7 & c) + '0', 0); | 1817 *p1 = MAKE_GLYPH ((7 & c) + '0', 0); |
1816 p1++; | 1818 p1++; |
1817 } | 1819 } |
1818 | 1820 |
1821 #ifdef HAVE_X_WINDOWS | |
1819 /* Now we've laid down some characters between p1prev and p1. | 1822 /* Now we've laid down some characters between p1prev and p1. |
1820 Let's apply current_face to those who have a face of zero | 1823 Let's apply current_face to those who have a face of zero |
1821 (the default), and apply Vglyph_table to the result. */ | 1824 (the default), and apply Vglyph_table to the result. */ |
1822 if (current_face) | 1825 if (current_face) |
1823 { | 1826 { |
1828 | 1831 |
1829 for (gp = gstart; gp < gend; gp++) | 1832 for (gp = gstart; gp < gend; gp++) |
1830 *gp = MAKE_GLYPH (GLYPH_CHAR (*gp), | 1833 *gp = MAKE_GLYPH (GLYPH_CHAR (*gp), |
1831 (GLYPH_FACE (*gp) == 0 | 1834 (GLYPH_FACE (*gp) == 0 |
1832 ? current_face | 1835 ? current_face |
1833 : compute_glyph_face (f, FRAME_DEFAULT_FACE (f), | 1836 : compute_glyph_face (f, GLYPH_FACE (*gp)))); |
1834 GLYPH_FACE (*gp)))); | 1837 } |
1835 } | 1838 #endif |
1836 | 1839 |
1837 pos++; | 1840 pos++; |
1838 } | 1841 } |
1839 | 1842 |
1840 val.hpos = - XINT (w->hscroll); | 1843 val.hpos = - XINT (w->hscroll); |