diff options
author | Jason Rumney <jasonr@gnu.org> | 2000-10-19 19:06:38 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2000-10-19 19:06:38 +0000 |
commit | b93b26cbb024384019c3c104623220f34f5caf23 (patch) | |
tree | 9240ec6a686dd7ed5a38a6faf2ae9800d5c54bfe /src/w32console.c | |
parent | c70fe8527e077a1c813eafbba73adb3ad038b72a (diff) | |
download | emacs-b93b26cbb024384019c3c104623220f34f5caf23.tar.gz |
Do not undef HAVE_WINDOW_SYSTEM before
including dispextern.h, as it stops faces from working.
Diffstat (limited to 'src/w32console.c')
-rw-r--r-- | src/w32console.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/w32console.c b/src/w32console.c index 55adc0dda9a..766a5ddf485 100644 --- a/src/w32console.c +++ b/src/w32console.c @@ -35,11 +35,11 @@ Boston, MA 02111-1307, USA. #include "coding.h" #include "disptab.h" #include "termhooks.h" -/* Disable features in dispextern.h that require a Window System. */ +#include "dispextern.h" +/* Disable features in frame.h that require a Window System. */ #undef HAVE_WINDOW_SYSTEM #include "frame.h" #include "w32inevt.h" -#include "dispextern.h" #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -579,10 +579,12 @@ w32_face_attributes (f, face_id) if (face->background != FACE_TTY_DEFAULT_BG_COLOR && face->background != FACE_TTY_DEFAULT_COLOR) - char_attr = (char_attr & 0xff0f) + ((face->background % 16) * 16); + char_attr = (char_attr & 0xff0f) + ((face->background % 16) << 4); - /* Ensure readability (temporary measure until this all works) */ + /* NTEMACS_TODO: Faces defined during startup get both foreground + and background of 0. Need a better way around this - for now detect + the problem and invert one of the faces to make the text readable. */ if (((char_attr & 0x00f0) >> 4) == (char_attr & 0x000f)) char_attr ^= 0x0007; |