aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2000-09-07 17:12:48 +0000
committerEli Zaretskii2000-09-07 17:12:48 +0000
commit65606f5ea1de3bea4e6d417e0fbb0be6fd847ba9 (patch)
tree1de23d0094ee962561b28583644afede8e45439d /src
parent24f76fbf714f6031ec4eccf1b8b914fa17282492 (diff)
downloademacs-65606f5ea1de3bea4e6d417e0fbb0be6fd847ba9.tar.gz
emacs-65606f5ea1de3bea4e6d417e0fbb0be6fd847ba9.zip
(make_terminal_frame): Initialize frame foreground and
background colors to unspecified, for the initial instance of an MSDOS frame.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index ee725c837ce..6c737eeaefb 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -561,7 +561,23 @@ make_terminal_frame ()
561 if (!inhibit_window_system 561 if (!inhibit_window_system
562 && (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)) 562 && (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame))
563 || XFRAME (selected_frame)->output_method == output_msdos_raw)) 563 || XFRAME (selected_frame)->output_method == output_msdos_raw))
564 f->output_method = output_msdos_raw; 564 {
565 f->output_method = output_msdos_raw;
566 /* This initialization of foreground and background pixels is
567 only important for the initial frame created in temacs. If
568 we don't do that, we get black background and foreground in
569 the dumped Emacs because the_only_x_display is a static
570 variable, hence it is born all-zeroes, and zero is the code
571 for the black color. Other frames all inherit their pixels
572 from what's already in the_only_x_display. */
573 if ((!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)))
574 && f->output_data.x->background_pixel == 0
575 && f->output_data.x->foreground_pixel == 0)
576 {
577 f->output_data.x->background_pixel = FACE_TTY_DEFAULT_BG_COLOR;
578 f->output_data.x->foreground_pixel = FACE_TTY_DEFAULT_FG_COLOR;
579 }
580 }
565 else 581 else
566 f->output_method = output_termcap; 582 f->output_method = output_termcap;
567#else 583#else