aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2010-11-05 14:11:22 +0200
committerEli Zaretskii <[email protected]>2010-11-05 14:11:22 +0200
commit7ac5dac91307a99913c558898c520da649dbf4ea (patch)
treed2cebebeef3ea822d4bf46111903ec7783f11ab8 /src
parent28118eb6e58a8461e2deef53b68fea513eaef825 (diff)
Fix mouse redesigned mouse highlight on MSDOS.
dispnew.c (init_display): Setup initial frame's output_data for text terminal frames. frame.h (MOUSE_HL_INFO): Fix TTY definition. msdos.h (initialize_msdos_display): Add prototype.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispnew.c6
-rw-r--r--src/frame.h2
-rw-r--r--src/msdos.h1
4 files changed, 14 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index db3582db7b..e840b18460 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
2010-11-05 Eli Zaretskii <[email protected]>
+ * dispnew.c (init_display): Setup initial frame's output_data for
+ text terminal frames.
+
+ * frame.h (MOUSE_HL_INFO): Fix TTY definition.
+
* dispextern.h (tty_draw_row_with_mouse_face): Add prototype.
* xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS.
@@ -10,6 +15,7 @@
GPM implementation.
* msdos.h (Display_Info): Restore typedef.
+ (initialize_msdos_display): Add prototype.
2010-11-02 Eli Zaretskii <[email protected]>
diff --git a/src/dispnew.c b/src/dispnew.c
index deb42f4763..116d9972ba 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6424,6 +6424,12 @@ init_display (void)
f->terminal = t;
t->reference_count++;
+#ifdef MSDOS
+ f->output_data.tty->display_info = &the_only_display_info;
+#else
+ if (f->output_method == output_termcap)
+ create_tty_output (f);
+#endif
t->display_info.tty->top_frame = selected_frame;
change_frame_size (XFRAME (selected_frame),
FrameRows (t->display_info.tty),
diff --git a/src/frame.h b/src/frame.h
index 00c062cfd3..72c0f6be2d 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -550,7 +550,7 @@ typedef struct frame *FRAME_PTR;
#define MOUSE_HL_INFO(F) \
(FRAME_WINDOW_P(F) \
? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \
- : &(((F)->output_data.tty)->mouse_highlight))
+ : &(((F)->output_data.tty->display_info)->mouse_highlight))
/* Nonzero if frame F is still alive (not deleted). */
#define FRAME_LIVE_P(f) ((f)->terminal != 0)
diff --git a/src/msdos.h b/src/msdos.h
index fe9964af25..d07c28d410 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -34,6 +34,7 @@ void dostounix_filename (char *);
char *rootrelativepath (char *);
void init_environment (int, char **, int);
void internal_terminal_init (void);
+void initialize_msdos_display (struct terminal *);
extern int have_mouse;
void mouse_init (void);