diff options
| -rw-r--r-- | src/frame.c | 18 |
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 |