diff options
| author | Jason Rumney | 2000-10-19 19:06:38 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-10-19 19:06:38 +0000 |
| commit | b93b26cbb024384019c3c104623220f34f5caf23 (patch) | |
| tree | 9240ec6a686dd7ed5a38a6faf2ae9800d5c54bfe /src | |
| parent | c70fe8527e077a1c813eafbba73adb3ad038b72a (diff) | |
| download | emacs-b93b26cbb024384019c3c104623220f34f5caf23.tar.gz emacs-b93b26cbb024384019c3c104623220f34f5caf23.zip | |
Do not undef HAVE_WINDOW_SYSTEM before
including dispextern.h, as it stops faces from working.
Diffstat (limited to 'src')
| -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. | |||
| 35 | #include "coding.h" | 35 | #include "coding.h" |
| 36 | #include "disptab.h" | 36 | #include "disptab.h" |
| 37 | #include "termhooks.h" | 37 | #include "termhooks.h" |
| 38 | /* Disable features in dispextern.h that require a Window System. */ | 38 | #include "dispextern.h" |
| 39 | /* Disable features in frame.h that require a Window System. */ | ||
| 39 | #undef HAVE_WINDOW_SYSTEM | 40 | #undef HAVE_WINDOW_SYSTEM |
| 40 | #include "frame.h" | 41 | #include "frame.h" |
| 41 | #include "w32inevt.h" | 42 | #include "w32inevt.h" |
| 42 | #include "dispextern.h" | ||
| 43 | 43 | ||
| 44 | #define min(a, b) ((a) < (b) ? (a) : (b)) | 44 | #define min(a, b) ((a) < (b) ? (a) : (b)) |
| 45 | 45 | ||
| @@ -579,10 +579,12 @@ w32_face_attributes (f, face_id) | |||
| 579 | 579 | ||
| 580 | if (face->background != FACE_TTY_DEFAULT_BG_COLOR | 580 | if (face->background != FACE_TTY_DEFAULT_BG_COLOR |
| 581 | && face->background != FACE_TTY_DEFAULT_COLOR) | 581 | && face->background != FACE_TTY_DEFAULT_COLOR) |
| 582 | char_attr = (char_attr & 0xff0f) + ((face->background % 16) * 16); | 582 | char_attr = (char_attr & 0xff0f) + ((face->background % 16) << 4); |
| 583 | 583 | ||
| 584 | 584 | ||
| 585 | /* Ensure readability (temporary measure until this all works) */ | 585 | /* NTEMACS_TODO: Faces defined during startup get both foreground |
| 586 | and background of 0. Need a better way around this - for now detect | ||
| 587 | the problem and invert one of the faces to make the text readable. */ | ||
| 586 | if (((char_attr & 0x00f0) >> 4) == (char_attr & 0x000f)) | 588 | if (((char_attr & 0x00f0) >> 4) == (char_attr & 0x000f)) |
| 587 | char_attr ^= 0x0007; | 589 | char_attr ^= 0x0007; |
| 588 | 590 | ||