diff options
| author | Jim Blandy | 1993-05-11 02:47:46 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-11 02:47:46 +0000 |
| commit | 9dbd4b48c5b89d82dc0e1a19b6938aa04ae550b1 (patch) | |
| tree | 76dd4556049d5f524f1ad30bbdfac87a08051855 /src | |
| parent | a253bab22d706a30c3742757cb4c370f0bf19003 (diff) | |
| download | emacs-9dbd4b48c5b89d82dc0e1a19b6938aa04ae550b1.tar.gz emacs-9dbd4b48c5b89d82dc0e1a19b6938aa04ae550b1.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index b7d554c7a39..5e19209b105 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1701,6 +1701,7 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 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. */ |
| @@ -1710,6 +1711,7 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 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? */ |
| @@ -1816,6 +1818,7 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 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. */ |
| @@ -1830,9 +1833,9 @@ display_text_line (w, start, vpos, hpos, taboffset) | |||
| 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)))); | ||
| 1835 | } | 1837 | } |
| 1838 | #endif | ||
| 1836 | 1839 | ||
| 1837 | pos++; | 1840 | pos++; |
| 1838 | } | 1841 | } |