aboutsummaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 450d1273c02..1856b6ed656 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -685,12 +685,16 @@ IT_set_face (int face)
685 all 16 colors to be available for the background, since Emacs 685 all 16 colors to be available for the background, since Emacs
686 switches on this mode (and loses the blinking attribute) at 686 switches on this mode (and loses the blinking attribute) at
687 startup. */ 687 startup. */
688 if (fg == (unsigned long)-1) 688 if (fg == FACE_TTY_DEFAULT_COLOR || fg == FACE_TTY_DEFAULT_FG_COLOR)
689 fg = highlight || fp->tty_reverse_p ? FRAME_BACKGROUND_PIXEL (sf) 689 fg = highlight || fp->tty_reverse_p ? FRAME_BACKGROUND_PIXEL (sf)
690 : FRAME_FOREGROUND_PIXEL (sf); 690 : FRAME_FOREGROUND_PIXEL (sf);
691 if (bg == (unsigned long)-1) 691 else if (fg == FACE_TTY_DEFAULT_BG_COLOR)
692 fg = highlight ? FRAME_FOREGROUND_PIXEL (sf) : FRAME_BACKGROUND_PIXEL (sf);
693 if (bg == FACE_TTY_DEFAULT_COLOR || fg == FACE_TTY_DEFAULT_BG_COLOR)
692 bg = highlight || fp->tty_reverse_p ? FRAME_FOREGROUND_PIXEL (sf) 694 bg = highlight || fp->tty_reverse_p ? FRAME_FOREGROUND_PIXEL (sf)
693 : FRAME_BACKGROUND_PIXEL (sf); 695 : FRAME_BACKGROUND_PIXEL (sf);
696 else if (bg == FACE_TTY_DEFAULT_FG_COLOR)
697 fg = highlight ? FRAME_BACKGROUND_PIXEL (sf) : FRAME_FOREGROUND_PIXEL (sf);
694 if (termscript) 698 if (termscript)
695 fprintf (termscript, "<FACE %d%s: %d/%d>", 699 fprintf (termscript, "<FACE %d%s: %d/%d>",
696 face, highlight ? "H" : "", fp->foreground, fp->background); 700 face, highlight ? "H" : "", fp->foreground, fp->background);