diff options
| author | Eli Zaretskii | 1999-07-30 08:33:50 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 1999-07-30 08:33:50 +0000 |
| commit | 4aec4b29588f30d61971950e3e9afbc409866a9b (patch) | |
| tree | eb28c1afea1366f441642d2bb627a49f3671ef73 /src | |
| parent | e6a77d6cabdfb9e2d16eedca567ff2e1d5d5badb (diff) | |
| download | emacs-4aec4b29588f30d61971950e3e9afbc409866a9b.tar.gz emacs-4aec4b29588f30d61971950e3e9afbc409866a9b.zip | |
(make_terminal_frame) [MSDOS]: Don't call
init_frame_faces if non-interactive.
(Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
array with a call to msdos_stdcolor_name. The font name is now
"ms-dos", consistent with realize_tty_face.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/frame.c b/src/frame.c index 2aba671db51..fa276cb38ef 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 38 | #include "window.h" | 38 | #include "window.h" |
| 39 | #ifdef MSDOS | 39 | #ifdef MSDOS |
| 40 | #include "msdos.h" | 40 | #include "msdos.h" |
| 41 | #include "dosfns.h" | ||
| 41 | #endif | 42 | #endif |
| 42 | 43 | ||
| 43 | /* Evaluate this expression to rebuild the section of syms_of_frame | 44 | /* Evaluate this expression to rebuild the section of syms_of_frame |
| @@ -538,10 +539,12 @@ make_terminal_frame () | |||
| 538 | #ifdef MSDOS | 539 | #ifdef MSDOS |
| 539 | f->output_data.x = &the_only_x_display; | 540 | f->output_data.x = &the_only_x_display; |
| 540 | f->output_method = output_msdos_raw; | 541 | f->output_method = output_msdos_raw; |
| 542 | if (!noninteractive) | ||
| 543 | init_frame_faces (f); | ||
| 541 | #else /* not MSDOS */ | 544 | #else /* not MSDOS */ |
| 542 | f->output_data.nothing = 1; /* Nonzero means frame isn't deleted. */ | 545 | f->output_data.nothing = 1; /* Nonzero means frame isn't deleted. */ |
| 543 | #endif | ||
| 544 | init_frame_faces (f); | 546 | init_frame_faces (f); |
| 547 | #endif | ||
| 545 | return f; | 548 | return f; |
| 546 | } | 549 | } |
| 547 | 550 | ||
| @@ -1948,18 +1951,15 @@ If FRAME is omitted, return information on the currently selected frame.") | |||
| 1948 | #ifdef MSDOS | 1951 | #ifdef MSDOS |
| 1949 | if (FRAME_MSDOS_P (f)) | 1952 | if (FRAME_MSDOS_P (f)) |
| 1950 | { | 1953 | { |
| 1951 | static char *colornames[16] = | 1954 | int fg = FRAME_FOREGROUND_PIXEL (f); |
| 1952 | { | 1955 | int bg = FRAME_BACKGROUND_PIXEL (f); |
| 1953 | "black", "blue", "green", "cyan", "red", "magenta", "brown", | 1956 | |
| 1954 | "lightgray", "darkgray", "lightblue", "lightgreen", "lightcyan", | ||
| 1955 | "lightred", "lightmagenta", "yellow", "white" | ||
| 1956 | }; | ||
| 1957 | store_in_alist (&alist, intern ("foreground-color"), | 1957 | store_in_alist (&alist, intern ("foreground-color"), |
| 1958 | build_string (colornames[FRAME_FOREGROUND_PIXEL (f)])); | 1958 | build_string (msdos_stdcolor_name (fg))); |
| 1959 | store_in_alist (&alist, intern ("background-color"), | 1959 | store_in_alist (&alist, intern ("background-color"), |
| 1960 | build_string (colornames[FRAME_BACKGROUND_PIXEL (f)])); | 1960 | build_string (msdos_stdcolor_name (bg))); |
| 1961 | } | 1961 | } |
| 1962 | store_in_alist (&alist, intern ("font"), build_string ("default")); | 1962 | store_in_alist (&alist, intern ("font"), build_string ("ms-dos")); |
| 1963 | #endif | 1963 | #endif |
| 1964 | store_in_alist (&alist, Qname, f->name); | 1964 | store_in_alist (&alist, Qname, f->name); |
| 1965 | height = (FRAME_NEW_HEIGHT (f) ? FRAME_NEW_HEIGHT (f) : FRAME_HEIGHT (f)); | 1965 | height = (FRAME_NEW_HEIGHT (f) ? FRAME_NEW_HEIGHT (f) : FRAME_HEIGHT (f)); |