[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/frame.c,v
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/src/frame.c,v |
Date: |
Sat, 23 Aug 2008 16:57:00 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Eli Zaretskii <eliz> 08/08/23 16:56:59
Index: frame.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/frame.c,v
retrieving revision 1.388
retrieving revision 1.389
diff -u -b -r1.388 -r1.389
--- frame.c 13 Aug 2008 23:43:22 -0000 1.388
+++ frame.c 23 Aug 2008 16:56:59 -0000 1.389
@@ -586,19 +586,20 @@
f->visible = 1; /* FRAME_SET_VISIBLE wd set frame_garbaged. */
f->async_visible = 1; /* Don't let visible be cleared later.
*/
#ifdef MSDOS
- f->output_data.x = &the_only_x_display;
+ f->output_data.tty->display_info = &the_only_display_info;
if (!inhibit_window_system
&& (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame))
|| XFRAME (selected_frame)->output_method == output_msdos_raw))
{
f->output_method = output_msdos_raw;
+#if 0
/* This initialization of foreground and background pixels is
only important for the initial frame created in temacs. If
we don't do that, we get black background and foreground in
- the dumped Emacs because the_only_x_display is a static
+ the dumped Emacs because the_only_display_info is a static
variable, hence it is born all-zeroes, and zero is the code
for the black color. Other frames all inherit their pixels
- from what's already in the_only_x_display. */
+ from what's already in the_only_display_info. */
if ((!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)))
&& FRAME_BACKGROUND_PIXEL (f) == 0
&& FRAME_FOREGROUND_PIXEL (f) == 0)
@@ -606,6 +607,7 @@
FRAME_BACKGROUND_PIXEL (f) = FACE_TTY_DEFAULT_BG_COLOR;
FRAME_FOREGROUND_PIXEL (f) = FACE_TTY_DEFAULT_FG_COLOR;
}
+#endif
}
else
f->output_method = output_termcap;
@@ -719,6 +721,10 @@
if (!t)
{
+#ifdef MSDOS
+ /* msdos.c assumes a single tty_display_info object. */
+ error ("Multiple terminals are not supported on this platform");
+#else /* !MSDOS */
char *name = 0, *type = 0;
Lisp_Object tty, tty_type;
@@ -745,6 +751,7 @@
}
t = init_tty (name, type, 0); /* Errors are not fatal. */
+#endif /* !MSDOS */
}
f = make_terminal_frame (t);
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Chong Yidong, 2008/08/13
- [Emacs-diffs] Changes to emacs/src/frame.c,v,
Eli Zaretskii <=
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Eli Zaretskii, 2008/08/24
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Eli Zaretskii, 2008/08/25
- [Emacs-diffs] Changes to emacs/src/frame.c,v, Glenn Morris, 2008/08/30