aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index be82b209f63..7ad6eaeb194 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -552,6 +552,9 @@ x_update_begin (f)
552{ 552{
553 struct w32_display_info *display_info = FRAME_W32_DISPLAY_INFO (f); 553 struct w32_display_info *display_info = FRAME_W32_DISPLAY_INFO (f);
554 554
555 if (! FRAME_W32_P (f))
556 return;
557
555 /* Regenerate display palette before drawing if list of requested 558 /* Regenerate display palette before drawing if list of requested
556 colors has changed. */ 559 colors has changed. */
557 if (display_info->regen_palette) 560 if (display_info->regen_palette)
@@ -703,6 +706,9 @@ static void
703x_update_end (f) 706x_update_end (f)
704 struct frame *f; 707 struct frame *f;
705{ 708{
709 if (! FRAME_W32_P (f))
710 return;
711
706 /* Mouse highlight may be displayed again. */ 712 /* Mouse highlight may be displayed again. */
707 FRAME_W32_DISPLAY_INFO (f)->mouse_face_defer = 0; 713 FRAME_W32_DISPLAY_INFO (f)->mouse_face_defer = 0;
708} 714}
@@ -988,6 +994,16 @@ static void
988w32_reassert_line_highlight (new, vpos) 994w32_reassert_line_highlight (new, vpos)
989 int new, vpos; 995 int new, vpos;
990{ 996{
997 struct frame *f;
998
999 if (updating_frame)
1000 f = updating_frame;
1001 else
1002 f = SELECTED_FRAME ();
1003
1004 if (! FRAME_W32_P (f))
1005 return;
1006
991 abort (); 1007 abort ();
992} 1008}
993 1009
@@ -999,6 +1015,16 @@ static void
999x_change_line_highlight (new_highlight, vpos, y, first_unused_hpos) 1015x_change_line_highlight (new_highlight, vpos, y, first_unused_hpos)
1000 int new_highlight, vpos, y, first_unused_hpos; 1016 int new_highlight, vpos, y, first_unused_hpos;
1001{ 1017{
1018 struct frame *f;
1019
1020 if (updating_frame)
1021 f = updating_frame;
1022 else
1023 f = SELECTED_FRAME ();
1024
1025 if (! FRAME_W32_P (f))
1026 return;
1027
1002 abort (); 1028 abort ();
1003} 1029}
1004 1030
@@ -5146,6 +5172,16 @@ static void
5146x_delete_glyphs (n) 5172x_delete_glyphs (n)
5147 register int n; 5173 register int n;
5148{ 5174{
5175 struct frame *f;
5176
5177 if (updating_frame)
5178 f = updating_frame;
5179 else
5180 f = SELECTED_FRAME ();
5181
5182 if (! FRAME_W32_P (f))
5183 return;
5184
5149 abort (); 5185 abort ();
5150} 5186}
5151 5187
@@ -5240,6 +5276,9 @@ x_clear_frame ()
5240 else 5276 else
5241 f = SELECTED_FRAME (); 5277 f = SELECTED_FRAME ();
5242 5278
5279 if (! FRAME_W32_P (f))
5280 return;
5281
5243 /* Clearing the frame will erase any cursor, so mark them all as no 5282 /* Clearing the frame will erase any cursor, so mark them all as no
5244 longer visible. */ 5283 longer visible. */
5245 mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f))); 5284 mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f)));
@@ -5265,6 +5304,13 @@ x_clear_frame ()
5265static void 5304static void
5266w32_ring_bell (void) 5305w32_ring_bell (void)
5267{ 5306{
5307 struct frame *f;
5308
5309 f = SELECTED_FRAME ();
5310
5311 if (! FRAME_W32_P (f))
5312 return;
5313
5268 BLOCK_INPUT; 5314 BLOCK_INPUT;
5269 5315
5270 if (visible_bell) 5316 if (visible_bell)
@@ -5311,6 +5357,16 @@ static void
5311x_ins_del_lines (vpos, n) 5357x_ins_del_lines (vpos, n)
5312 int vpos, n; 5358 int vpos, n;
5313{ 5359{
5360 struct frame *f;
5361
5362 if (updating_frame)
5363 f = updating_frame;
5364 else
5365 f = SELECTED_FRAME ();
5366
5367 if (! FRAME_W32_P (f))
5368 return;
5369
5314 abort (); 5370 abort ();
5315} 5371}
5316 5372
@@ -5758,6 +5814,9 @@ static void
5758w32_frame_rehighlight (frame) 5814w32_frame_rehighlight (frame)
5759 struct frame *frame; 5815 struct frame *frame;
5760{ 5816{
5817 if (! FRAME_W32_P (frame))
5818 return;
5819
5761 x_frame_rehighlight (FRAME_W32_DISPLAY_INFO (frame)); 5820 x_frame_rehighlight (FRAME_W32_DISPLAY_INFO (frame));
5762} 5821}
5763 5822
@@ -9729,6 +9788,9 @@ w32_frame_raise_lower (f, raise_flag)
9729 FRAME_PTR f; 9788 FRAME_PTR f;
9730 int raise_flag; 9789 int raise_flag;
9731{ 9790{
9791 if (! FRAME_W32_P (f))
9792 return;
9793
9732 if (raise_flag) 9794 if (raise_flag)
9733 x_raise_frame (f); 9795 x_raise_frame (f);
9734 else 9796 else