aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/w32term.c b/src/w32term.c
index f31c4e90e77..f6a6ba3e82f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -160,7 +160,6 @@ int last_scroll_bar_drag_pos;
160/* Where the mouse was last time we reported a mouse event. */ 160/* Where the mouse was last time we reported a mouse event. */
161static RECT last_mouse_glyph; 161static RECT last_mouse_glyph;
162static FRAME_PTR last_mouse_glyph_frame; 162static FRAME_PTR last_mouse_glyph_frame;
163static Lisp_Object last_mouse_press_frame;
164 163
165/* The scroll bar in which the last motion event occurred. 164/* The scroll bar in which the last motion event occurred.
166 165
@@ -1069,16 +1068,12 @@ x_set_glyph_string_clipping (struct glyph_string *s)
1069 w32_set_clip_rectangle (s->hdc, r); 1068 w32_set_clip_rectangle (s->hdc, r);
1070 else if (n > 1) 1069 else if (n > 1)
1071 { 1070 {
1072 HRGN full_clip, clip1, clip2; 1071 HRGN clip1 = CreateRectRgnIndirect (r);
1073 clip1 = CreateRectRgnIndirect (r); 1072 HRGN clip2 = CreateRectRgnIndirect (r + 1);
1074 clip2 = CreateRectRgnIndirect (r + 1); 1073 if (CombineRgn (clip1, clip1, clip2, RGN_OR) != ERROR)
1075 if (CombineRgn (full_clip, clip1, clip2, RGN_OR) != ERROR) 1074 SelectClipRgn (s->hdc, clip1);
1076 {
1077 SelectClipRgn (s->hdc, full_clip);
1078 }
1079 DeleteObject (clip1); 1075 DeleteObject (clip1);
1080 DeleteObject (clip2); 1076 DeleteObject (clip2);
1081 DeleteObject (full_clip);
1082 } 1077 }
1083 s->num_clips = n; 1078 s->num_clips = n;
1084} 1079}
@@ -1294,7 +1289,6 @@ x_draw_composite_glyph_string_foreground (struct glyph_string *s)
1294 else if (! s->first_glyph->u.cmp.automatic) 1289 else if (! s->first_glyph->u.cmp.automatic)
1295 { 1290 {
1296 int y = s->ybase; 1291 int y = s->ybase;
1297 int width = 0;
1298 HFONT old_font; 1292 HFONT old_font;
1299 1293
1300 old_font = SelectObject (s->hdc, FONT_HANDLE (font)); 1294 old_font = SelectObject (s->hdc, FONT_HANDLE (font));
@@ -4842,7 +4836,6 @@ w32_read_socket (struct terminal *terminal, int expected,
4842static void 4836static void
4843w32_clip_to_row (struct window *w, struct glyph_row *row, int area, HDC hdc) 4837w32_clip_to_row (struct window *w, struct glyph_row *row, int area, HDC hdc)
4844{ 4838{
4845 struct frame *f = XFRAME (WINDOW_FRAME (w));
4846 RECT clip_rect; 4839 RECT clip_rect;
4847 int window_x, window_y, window_width; 4840 int window_x, window_y, window_width;
4848 4841
@@ -6089,7 +6082,6 @@ static void
6089x_delete_terminal (struct terminal *terminal) 6082x_delete_terminal (struct terminal *terminal)
6090{ 6083{
6091 struct w32_display_info *dpyinfo = terminal->display_info.w32; 6084 struct w32_display_info *dpyinfo = terminal->display_info.w32;
6092 int i;
6093 6085
6094 /* Protect against recursive calls. delete_frame in 6086 /* Protect against recursive calls. delete_frame in
6095 delete_terminal calls us back when it deletes our last frame. */ 6087 delete_terminal calls us back when it deletes our last frame. */