# HG changeset patch # User Eli Zaretskii # Date 1288959082 -7200 # Node ID 8ed4db9b46e667c8e43ac979dcb872d33148780e # Parent b775602e70c89203bf234f26ae389c7bcc6ff89f 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. diff -r b775602e70c8 -r 8ed4db9b46e6 src/ChangeLog --- a/src/ChangeLog Fri Nov 05 12:03:17 2010 +0200 +++ b/src/ChangeLog Fri Nov 05 14:11:22 2010 +0200 @@ -1,5 +1,10 @@ 2010-11-05 Eli Zaretskii + * 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 diff -r b775602e70c8 -r 8ed4db9b46e6 src/dispnew.c --- a/src/dispnew.c Fri Nov 05 12:03:17 2010 +0200 +++ b/src/dispnew.c Fri Nov 05 14:11:22 2010 +0200 @@ -6424,6 +6424,12 @@ 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 -r b775602e70c8 -r 8ed4db9b46e6 src/frame.h --- a/src/frame.h Fri Nov 05 12:03:17 2010 +0200 +++ b/src/frame.h Fri Nov 05 14:11:22 2010 +0200 @@ -550,7 +550,7 @@ #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 -r b775602e70c8 -r 8ed4db9b46e6 src/msdos.h --- a/src/msdos.h Fri Nov 05 12:03:17 2010 +0200 +++ b/src/msdos.h Fri Nov 05 14:11:22 2010 +0200 @@ -34,6 +34,7 @@ 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);