aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-11-05 14:11:22 +0200
committerEli Zaretskii2010-11-05 14:11:22 +0200
commit7ac5dac91307a99913c558898c520da649dbf4ea (patch)
treed2cebebeef3ea822d4bf46111903ec7783f11ab8 /src
parent28118eb6e58a8461e2deef53b68fea513eaef825 (diff)
downloademacs-7ac5dac91307a99913c558898c520da649dbf4ea.tar.gz
emacs-7ac5dac91307a99913c558898c520da649dbf4ea.zip
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 db3582db7bd..e840b18460e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12010-11-05 Eli Zaretskii <eliz@gnu.org> 12010-11-05 Eli Zaretskii <eliz@gnu.org>
2 2
3 * dispnew.c (init_display): Setup initial frame's output_data for
4 text terminal frames.
5
6 * frame.h (MOUSE_HL_INFO): Fix TTY definition.
7
3 * dispextern.h (tty_draw_row_with_mouse_face): Add prototype. 8 * dispextern.h (tty_draw_row_with_mouse_face): Add prototype.
4 9
5 * xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS. 10 * xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS.
@@ -10,6 +15,7 @@
10 GPM implementation. 15 GPM implementation.
11 16
12 * msdos.h (Display_Info): Restore typedef. 17 * msdos.h (Display_Info): Restore typedef.
18 (initialize_msdos_display): Add prototype.
13 19
142010-11-02 Eli Zaretskii <eliz@gnu.org> 202010-11-02 Eli Zaretskii <eliz@gnu.org>
15 21
diff --git a/src/dispnew.c b/src/dispnew.c
index deb42f47639..116d9972ba5 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6424,6 +6424,12 @@ init_display (void)
6424 f->terminal = t; 6424 f->terminal = t;
6425 6425
6426 t->reference_count++; 6426 t->reference_count++;
6427#ifdef MSDOS
6428 f->output_data.tty->display_info = &the_only_display_info;
6429#else
6430 if (f->output_method == output_termcap)
6431 create_tty_output (f);
6432#endif
6427 t->display_info.tty->top_frame = selected_frame; 6433 t->display_info.tty->top_frame = selected_frame;
6428 change_frame_size (XFRAME (selected_frame), 6434 change_frame_size (XFRAME (selected_frame),
6429 FrameRows (t->display_info.tty), 6435 FrameRows (t->display_info.tty),
diff --git a/src/frame.h b/src/frame.h
index 00c062cfd36..72c0f6be2d7 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -550,7 +550,7 @@ typedef struct frame *FRAME_PTR;
550#define MOUSE_HL_INFO(F) \ 550#define MOUSE_HL_INFO(F) \
551 (FRAME_WINDOW_P(F) \ 551 (FRAME_WINDOW_P(F) \
552 ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \ 552 ? &(FRAME_X_DISPLAY_INFO(F)->mouse_highlight) \
553 : &(((F)->output_data.tty)->mouse_highlight)) 553 : &(((F)->output_data.tty->display_info)->mouse_highlight))
554 554
555/* Nonzero if frame F is still alive (not deleted). */ 555/* Nonzero if frame F is still alive (not deleted). */
556#define FRAME_LIVE_P(f) ((f)->terminal != 0) 556#define FRAME_LIVE_P(f) ((f)->terminal != 0)
diff --git a/src/msdos.h b/src/msdos.h
index fe9964af25e..d07c28d410e 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -34,6 +34,7 @@ void dostounix_filename (char *);
34char *rootrelativepath (char *); 34char *rootrelativepath (char *);
35void init_environment (int, char **, int); 35void init_environment (int, char **, int);
36void internal_terminal_init (void); 36void internal_terminal_init (void);
37void initialize_msdos_display (struct terminal *);
37 38
38extern int have_mouse; 39extern int have_mouse;
39void mouse_init (void); 40void mouse_init (void);