aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-01-26 00:03:14 +0200
committerEli Zaretskii2015-01-26 00:03:14 +0200
commit03a20dc9519616359bfa1b77fd4b31e1963c8bd4 (patch)
treebdba6238ba285e9b941503c00c74975a70853449
parent49b822741f9cabc47b9a748eb6d82c3fbf2bb4a6 (diff)
downloademacs-03a20dc9519616359bfa1b77fd4b31e1963c8bd4.tar.gz
emacs-03a20dc9519616359bfa1b77fd4b31e1963c8bd4.zip
Use bool for boolean in w32term.c
src/w32term.c (x_update_window_begin, x_update_window_end) (x_update_end, x_after_update_window_line) (x_set_glyph_string_gc, x_draw_glyph_string_background) (x_draw_glyph_string_foreground) (x_draw_composite_glyph_string_foreground) (x_draw_glyphless_glyph_string_foreground) (x_draw_image_glyph_string, x_draw_glyph_string) (x_draw_stretch_glyph_string, note_mouse_movement) (w32_mouse_position, x_scroll_bar_report_motion) (x_horizontal_scroll_bar_report_motion, w32_read_socket) (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar) (w32_draw_window_cursor, x_new_font, x_set_offset) (x_set_window_size, x_make_frame_invisible, x_iconify_frame): Use bool where appropriate.
-rw-r--r--src/ChangeLog16
-rw-r--r--src/w32term.c119
2 files changed, 76 insertions, 59 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bdc7c721095..4fc0de7c815 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,21 @@
12015-01-25 Eli Zaretskii <eliz@gnu.org> 12015-01-25 Eli Zaretskii <eliz@gnu.org>
2 2
3 Use bool for boolean in w32term.c
4 * w32term.c (x_update_window_begin, x_update_window_end)
5 (x_update_end, x_after_update_window_line)
6 (x_set_glyph_string_gc, x_draw_glyph_string_background)
7 (x_draw_glyph_string_foreground)
8 (x_draw_composite_glyph_string_foreground)
9 (x_draw_glyphless_glyph_string_foreground)
10 (x_draw_image_glyph_string, x_draw_glyph_string)
11 (x_draw_stretch_glyph_string, note_mouse_movement)
12 (w32_mouse_position, x_scroll_bar_report_motion)
13 (x_horizontal_scroll_bar_report_motion, w32_read_socket)
14 (w32_set_vertical_scroll_bar, w32_set_horizontal_scroll_bar)
15 (w32_draw_window_cursor, x_new_font, x_set_offset)
16 (x_set_window_size, x_make_frame_invisible, x_iconify_frame): Use
17 bool where appropriate.
18
3 Use bool for boolean in w32fns.c 19 Use bool for boolean in w32fns.c
4 * w32fns.c (w32_defined_color, x_decode_color) 20 * w32fns.c (w32_defined_color, x_decode_color)
5 (Fxw_color_defined_p, Fxw_color_values, x_set_icon_type) 21 (Fxw_color_defined_p, Fxw_color_values, x_set_icon_type)
diff --git a/src/w32term.c b/src/w32term.c
index ce28e05a45b..251c46c73cf 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -559,7 +559,7 @@ x_update_window_begin (struct window *w)
559 if (f == hlinfo->mouse_face_mouse_frame) 559 if (f == hlinfo->mouse_face_mouse_frame)
560 { 560 {
561 /* Don't do highlighting for mouse motion during the update. */ 561 /* Don't do highlighting for mouse motion during the update. */
562 hlinfo->mouse_face_defer = 1; 562 hlinfo->mouse_face_defer = true;
563 563
564 /* If F needs to be redrawn, simply forget about any prior mouse 564 /* If F needs to be redrawn, simply forget about any prior mouse
565 highlighting. */ 565 highlighting. */
@@ -682,11 +682,11 @@ x_update_window_end (struct window *w, bool cursor_on_p,
682 block_input (); 682 block_input ();
683 683
684 if (cursor_on_p) 684 if (cursor_on_p)
685 display_and_set_cursor (w, 1, 685 display_and_set_cursor (w, true,
686 w->output_cursor.hpos, w->output_cursor.vpos, 686 w->output_cursor.hpos, w->output_cursor.vpos,
687 w->output_cursor.x, w->output_cursor.y); 687 w->output_cursor.x, w->output_cursor.y);
688 688
689 if (draw_window_fringes (w, 1)) 689 if (draw_window_fringes (w, true))
690 { 690 {
691 if (WINDOW_RIGHT_DIVIDER_WIDTH (w)) 691 if (WINDOW_RIGHT_DIVIDER_WIDTH (w))
692 x_draw_right_divider (w); 692 x_draw_right_divider (w);
@@ -728,7 +728,7 @@ x_update_end (struct frame *f)
728 return; 728 return;
729 729
730 /* Mouse highlight may be displayed again. */ 730 /* Mouse highlight may be displayed again. */
731 MOUSE_HL_INFO (f)->mouse_face_defer = 0; 731 MOUSE_HL_INFO (f)->mouse_face_defer = false;
732} 732}
733 733
734 734
@@ -758,7 +758,7 @@ x_after_update_window_line (struct window *w, struct glyph_row *desired_row)
758 eassert (w); 758 eassert (w);
759 759
760 if (!desired_row->mode_line_p && !w->pseudo_window_p) 760 if (!desired_row->mode_line_p && !w->pseudo_window_p)
761 desired_row->redraw_fringe_bitmaps_p = 1; 761 desired_row->redraw_fringe_bitmaps_p = true;
762 762
763 /* When a window has disappeared, make sure that no rest of 763 /* When a window has disappeared, make sure that no rest of
764 full-width rows stays visible in the internal border. Could 764 full-width rows stays visible in the internal border. Could
@@ -903,7 +903,7 @@ w32_destroy_fringe_bitmap (int which)
903static void x_set_glyph_string_clipping (struct glyph_string *); 903static void x_set_glyph_string_clipping (struct glyph_string *);
904static void x_set_glyph_string_gc (struct glyph_string *); 904static void x_set_glyph_string_gc (struct glyph_string *);
905static void x_draw_glyph_string_background (struct glyph_string *, 905static void x_draw_glyph_string_background (struct glyph_string *,
906 int); 906 bool);
907static void x_draw_glyph_string_foreground (struct glyph_string *); 907static void x_draw_glyph_string_foreground (struct glyph_string *);
908static void x_draw_composite_glyph_string_foreground (struct glyph_string *); 908static void x_draw_composite_glyph_string_foreground (struct glyph_string *);
909static void x_draw_glyph_string_box (struct glyph_string *); 909static void x_draw_glyph_string_box (struct glyph_string *);
@@ -925,7 +925,7 @@ static void w32_draw_relief_rect (struct frame *, int, int, int, int,
925 int, int, int, int, int, int, 925 int, int, int, int, int, int,
926 RECT *); 926 RECT *);
927static void w32_draw_box_rect (struct glyph_string *, int, int, int, int, 927static void w32_draw_box_rect (struct glyph_string *, int, int, int, int,
928 int, int, int, RECT *); 928 int, bool, bool, RECT *);
929 929
930 930
931/* Set S->gc to a suitable GC for drawing glyph string S in cursor 931/* Set S->gc to a suitable GC for drawing glyph string S in cursor
@@ -1064,7 +1064,7 @@ x_set_glyph_string_gc (struct glyph_string *s)
1064 else if (s->hl == DRAW_CURSOR) 1064 else if (s->hl == DRAW_CURSOR)
1065 { 1065 {
1066 x_set_cursor_gc (s); 1066 x_set_cursor_gc (s);
1067 s->stippled_p = 0; 1067 s->stippled_p = false;
1068 } 1068 }
1069 else if (s->hl == DRAW_MOUSE_FACE) 1069 else if (s->hl == DRAW_MOUSE_FACE)
1070 { 1070 {
@@ -1190,7 +1190,7 @@ x_clear_glyph_string_rect (struct glyph_string *s,
1190 contains the first component of a composition. */ 1190 contains the first component of a composition. */
1191 1191
1192static void 1192static void
1193x_draw_glyph_string_background (struct glyph_string *s, int force_p) 1193x_draw_glyph_string_background (struct glyph_string *s, bool force_p)
1194{ 1194{
1195 /* Nothing to do if background has already been drawn or if it 1195 /* Nothing to do if background has already been drawn or if it
1196 shouldn't be drawn in the first place. */ 1196 shouldn't be drawn in the first place. */
@@ -1208,7 +1208,7 @@ x_draw_glyph_string_background (struct glyph_string *s, int force_p)
1208 s->background_width, 1208 s->background_width,
1209 s->height - 2 * box_line_width); 1209 s->height - 2 * box_line_width);
1210 XSetFillStyle (s->display, s->gc, FillSolid); 1210 XSetFillStyle (s->display, s->gc, FillSolid);
1211 s->background_filled_p = 1; 1211 s->background_filled_p = true;
1212 } 1212 }
1213 else 1213 else
1214#endif 1214#endif
@@ -1220,7 +1220,7 @@ x_draw_glyph_string_background (struct glyph_string *s, int force_p)
1220 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width, 1220 x_clear_glyph_string_rect (s, s->x, s->y + box_line_width,
1221 s->background_width, 1221 s->background_width,
1222 s->height - 2 * box_line_width); 1222 s->height - 2 * box_line_width);
1223 s->background_filled_p = 1; 1223 s->background_filled_p = true;
1224 } 1224 }
1225 } 1225 }
1226} 1226}
@@ -1273,11 +1273,11 @@ x_draw_glyph_string_foreground (struct glyph_string *s)
1273 y = s->ybase - boff; 1273 y = s->ybase - boff;
1274 if (s->for_overlaps 1274 if (s->for_overlaps
1275 || (s->background_filled_p && s->hl != DRAW_CURSOR)) 1275 || (s->background_filled_p && s->hl != DRAW_CURSOR))
1276 font->driver->draw (s, 0, s->nchars, x, y, 0); 1276 font->driver->draw (s, 0, s->nchars, x, y, false);
1277 else 1277 else
1278 font->driver->draw (s, 0, s->nchars, x, y, 1); 1278 font->driver->draw (s, 0, s->nchars, x, y, true);
1279 if (s->face->overstrike) 1279 if (s->face->overstrike)
1280 font->driver->draw (s, 0, s->nchars, x + 1, y, 0); 1280 font->driver->draw (s, 0, s->nchars, x + 1, y, false);
1281 1281
1282 SelectObject (s->hdc, old_font); 1282 SelectObject (s->hdc, old_font);
1283 } 1283 }
@@ -1331,9 +1331,9 @@ x_draw_composite_glyph_string_foreground (struct glyph_string *s)
1331 int xx = x + s->cmp->offsets[j * 2]; 1331 int xx = x + s->cmp->offsets[j * 2];
1332 int yy = y - s->cmp->offsets[j * 2 + 1]; 1332 int yy = y - s->cmp->offsets[j * 2 + 1];
1333 1333
1334 font->driver->draw (s, j, j + 1, xx, yy, 0); 1334 font->driver->draw (s, j, j + 1, xx, yy, false);
1335 if (s->face->overstrike) 1335 if (s->face->overstrike)
1336 font->driver->draw (s, j, j + 1, xx + 1, yy, 0); 1336 font->driver->draw (s, j, j + 1, xx + 1, yy, false);
1337 } 1337 }
1338 SelectObject (s->hdc, old_font); 1338 SelectObject (s->hdc, old_font);
1339 } 1339 }
@@ -1358,20 +1358,20 @@ x_draw_composite_glyph_string_foreground (struct glyph_string *s)
1358 1358
1359 if (j < i) 1359 if (j < i)
1360 { 1360 {
1361 font->driver->draw (s, j, i, x, y, 0); 1361 font->driver->draw (s, j, i, x, y, false);
1362 x += width; 1362 x += width;
1363 } 1363 }
1364 xoff = LGLYPH_XOFF (glyph); 1364 xoff = LGLYPH_XOFF (glyph);
1365 yoff = LGLYPH_YOFF (glyph); 1365 yoff = LGLYPH_YOFF (glyph);
1366 wadjust = LGLYPH_WADJUST (glyph); 1366 wadjust = LGLYPH_WADJUST (glyph);
1367 font->driver->draw (s, i, i + 1, x + xoff, y + yoff, 0); 1367 font->driver->draw (s, i, i + 1, x + xoff, y + yoff, false);
1368 x += wadjust; 1368 x += wadjust;
1369 j = i + 1; 1369 j = i + 1;
1370 width = 0; 1370 width = 0;
1371 } 1371 }
1372 } 1372 }
1373 if (j < i) 1373 if (j < i)
1374 font->driver->draw (s, j, i, x, y, 0); 1374 font->driver->draw (s, j, i, x, y, false);
1375 1375
1376 SelectObject (s->hdc, old_font); 1376 SelectObject (s->hdc, old_font);
1377 } 1377 }
@@ -1386,7 +1386,7 @@ x_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
1386 struct glyph *glyph = s->first_glyph; 1386 struct glyph *glyph = s->first_glyph;
1387 XChar2b char2b[8]; 1387 XChar2b char2b[8];
1388 int x, i, j; 1388 int x, i, j;
1389 int with_background; 1389 bool with_background;
1390 1390
1391 /* If first glyph of S has a left box line, start drawing the text 1391 /* If first glyph of S has a left box line, start drawing the text
1392 of S to the right of that box line. */ 1392 of S to the right of that box line. */
@@ -1401,8 +1401,8 @@ x_draw_glyphless_glyph_string_foreground (struct glyph_string *s)
1401 SetTextAlign (s->hdc, TA_BASELINE | TA_LEFT); 1401 SetTextAlign (s->hdc, TA_BASELINE | TA_LEFT);
1402 1402
1403 s->char2b = char2b; 1403 s->char2b = char2b;
1404 with_background = ! (s->for_overlaps 1404 with_background = ((s->for_overlaps
1405 || (s->background_filled_p && s->hl != DRAW_CURSOR)); 1405 || (s->background_filled_p && s->hl != DRAW_CURSOR))) == 0;
1406 for (i = 0; i < s->nchars; i++, glyph++) 1406 for (i = 0; i < s->nchars; i++, glyph++)
1407 { 1407 {
1408 char buf[7], *str = NULL; 1408 char buf[7], *str = NULL;
@@ -1712,7 +1712,7 @@ w32_draw_relief_rect (struct frame *f,
1712static void 1712static void
1713w32_draw_box_rect (struct glyph_string *s, 1713w32_draw_box_rect (struct glyph_string *s,
1714 int left_x, int top_y, int right_x, int bottom_y, int width, 1714 int left_x, int top_y, int right_x, int bottom_y, int width,
1715 int left_p, int right_p, RECT *clip_rect) 1715 bool left_p, bool right_p, RECT *clip_rect)
1716{ 1716{
1717 w32_set_clip_rectangle (s->hdc, clip_rect); 1717 w32_set_clip_rectangle (s->hdc, clip_rect);
1718 1718
@@ -1747,8 +1747,8 @@ w32_draw_box_rect (struct glyph_string *s,
1747static void 1747static void
1748x_draw_glyph_string_box (struct glyph_string *s) 1748x_draw_glyph_string_box (struct glyph_string *s)
1749{ 1749{
1750 int width, left_x, right_x, top_y, bottom_y, last_x, raised_p; 1750 int width, left_x, right_x, top_y, bottom_y, last_x;
1751 int left_p, right_p; 1751 bool left_p, right_p, raised_p;
1752 struct glyph *last_glyph; 1752 struct glyph *last_glyph;
1753 RECT clip_rect; 1753 RECT clip_rect;
1754 1754
@@ -2157,7 +2157,7 @@ x_draw_image_glyph_string (struct glyph_string *s)
2157#endif 2157#endif
2158 x_draw_glyph_string_bg_rect (s, x, y, width, height); 2158 x_draw_glyph_string_bg_rect (s, x, y, width, height);
2159 2159
2160 s->background_filled_p = 1; 2160 s->background_filled_p = true;
2161 } 2161 }
2162 2162
2163 /* Draw the foreground. */ 2163 /* Draw the foreground. */
@@ -2293,7 +2293,7 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
2293 x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height); 2293 x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height);
2294 } 2294 }
2295 2295
2296 s->background_filled_p = 1; 2296 s->background_filled_p = true;
2297} 2297}
2298 2298
2299 2299
@@ -2321,7 +2321,7 @@ x_draw_glyph_string (struct glyph_string *s)
2321 if (next->first_glyph->type == STRETCH_GLYPH) 2321 if (next->first_glyph->type == STRETCH_GLYPH)
2322 x_draw_stretch_glyph_string (next); 2322 x_draw_stretch_glyph_string (next);
2323 else 2323 else
2324 x_draw_glyph_string_background (next, 1); 2324 x_draw_glyph_string_background (next, true);
2325 next->num_clips = 0; 2325 next->num_clips = 0;
2326 } 2326 }
2327 } 2327 }
@@ -2338,7 +2338,7 @@ x_draw_glyph_string (struct glyph_string *s)
2338 2338
2339 { 2339 {
2340 x_set_glyph_string_clipping (s); 2340 x_set_glyph_string_clipping (s);
2341 x_draw_glyph_string_background (s, 1); 2341 x_draw_glyph_string_background (s, true);
2342 x_draw_glyph_string_box (s); 2342 x_draw_glyph_string_box (s);
2343 x_set_glyph_string_clipping (s); 2343 x_set_glyph_string_clipping (s);
2344 relief_drawn_p = 1; 2344 relief_drawn_p = 1;
@@ -2366,26 +2366,26 @@ x_draw_glyph_string (struct glyph_string *s)
2366 2366
2367 case CHAR_GLYPH: 2367 case CHAR_GLYPH:
2368 if (s->for_overlaps) 2368 if (s->for_overlaps)
2369 s->background_filled_p = 1; 2369 s->background_filled_p = true;
2370 else 2370 else
2371 x_draw_glyph_string_background (s, 0); 2371 x_draw_glyph_string_background (s, false);
2372 x_draw_glyph_string_foreground (s); 2372 x_draw_glyph_string_foreground (s);
2373 break; 2373 break;
2374 2374
2375 case COMPOSITE_GLYPH: 2375 case COMPOSITE_GLYPH:
2376 if (s->for_overlaps || (s->cmp_from > 0 2376 if (s->for_overlaps || (s->cmp_from > 0
2377 && ! s->first_glyph->u.cmp.automatic)) 2377 && ! s->first_glyph->u.cmp.automatic))
2378 s->background_filled_p = 1; 2378 s->background_filled_p = true;
2379 else 2379 else
2380 x_draw_glyph_string_background (s, 1); 2380 x_draw_glyph_string_background (s, true);
2381 x_draw_composite_glyph_string_foreground (s); 2381 x_draw_composite_glyph_string_foreground (s);
2382 break; 2382 break;
2383 2383
2384 case GLYPHLESS_GLYPH: 2384 case GLYPHLESS_GLYPH:
2385 if (s->for_overlaps) 2385 if (s->for_overlaps)
2386 s->background_filled_p = 1; 2386 s->background_filled_p = true;
2387 else 2387 else
2388 x_draw_glyph_string_background (s, 0); 2388 x_draw_glyph_string_background (s, false);
2389 x_draw_glyphless_glyph_string_foreground (s); 2389 x_draw_glyphless_glyph_string_foreground (s);
2390 break; 2390 break;
2391 2391
@@ -3302,7 +3302,7 @@ note_mouse_movement (struct frame *frame, MSG *msg)
3302 3302
3303 if (msg->hwnd != FRAME_W32_WINDOW (frame)) 3303 if (msg->hwnd != FRAME_W32_WINDOW (frame))
3304 { 3304 {
3305 frame->mouse_moved = 1; 3305 frame->mouse_moved = true;
3306 dpyinfo->last_mouse_scroll_bar = NULL; 3306 dpyinfo->last_mouse_scroll_bar = NULL;
3307 note_mouse_highlight (frame, -1, -1); 3307 note_mouse_highlight (frame, -1, -1);
3308 dpyinfo->last_mouse_glyph_frame = NULL; 3308 dpyinfo->last_mouse_glyph_frame = NULL;
@@ -3315,7 +3315,7 @@ note_mouse_movement (struct frame *frame, MSG *msg)
3315 || mouse_x < r->left || mouse_x >= r->right 3315 || mouse_x < r->left || mouse_x >= r->right
3316 || mouse_y < r->top || mouse_y >= r->bottom) 3316 || mouse_y < r->top || mouse_y >= r->bottom)
3317 { 3317 {
3318 frame->mouse_moved = 1; 3318 frame->mouse_moved = true;
3319 dpyinfo->last_mouse_scroll_bar = NULL; 3319 dpyinfo->last_mouse_scroll_bar = NULL;
3320 note_mouse_highlight (frame, mouse_x, mouse_y); 3320 note_mouse_highlight (frame, mouse_x, mouse_y);
3321 /* Remember the mouse position here, as w32_mouse_position only 3321 /* Remember the mouse position here, as w32_mouse_position only
@@ -3399,7 +3399,7 @@ w32_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window,
3399 3399
3400 /* Clear the mouse-moved flag for every frame on this display. */ 3400 /* Clear the mouse-moved flag for every frame on this display. */
3401 FOR_EACH_FRAME (tail, frame) 3401 FOR_EACH_FRAME (tail, frame)
3402 XFRAME (frame)->mouse_moved = 0; 3402 XFRAME (frame)->mouse_moved = false;
3403 3403
3404 dpyinfo->last_mouse_scroll_bar = NULL; 3404 dpyinfo->last_mouse_scroll_bar = NULL;
3405 3405
@@ -3822,7 +3822,7 @@ w32_set_vertical_scroll_bar (struct window *w,
3822 } 3822 }
3823 unblock_input (); 3823 unblock_input ();
3824 3824
3825 bar = x_scroll_bar_create (w, left, top, width, height, 0); 3825 bar = x_scroll_bar_create (w, left, top, width, height, false);
3826 } 3826 }
3827 else 3827 else
3828 { 3828 {
@@ -3922,7 +3922,7 @@ w32_set_horizontal_scroll_bar (struct window *w,
3922 } 3922 }
3923 unblock_input (); 3923 unblock_input ();
3924 3924
3925 bar = x_scroll_bar_create (w, left, top, width, height, 1); 3925 bar = x_scroll_bar_create (w, left, top, width, height, true);
3926 } 3926 }
3927 else 3927 else
3928 { 3928 {
@@ -4405,7 +4405,7 @@ x_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_window,
4405 XSETINT (*x, pos); 4405 XSETINT (*x, pos);
4406 XSETINT (*y, top_range); 4406 XSETINT (*y, top_range);
4407 4407
4408 f->mouse_moved = 0; 4408 f->mouse_moved = false;
4409 dpyinfo->last_mouse_scroll_bar = NULL; 4409 dpyinfo->last_mouse_scroll_bar = NULL;
4410 4410
4411 *time = dpyinfo->last_mouse_movement_time; 4411 *time = dpyinfo->last_mouse_movement_time;
@@ -4456,7 +4456,7 @@ x_horizontal_scroll_bar_report_motion (struct frame **fp, Lisp_Object *bar_windo
4456 XSETINT (*y, pos); 4456 XSETINT (*y, pos);
4457 XSETINT (*x, left_range); 4457 XSETINT (*x, left_range);
4458 4458
4459 f->mouse_moved = 0; 4459 f->mouse_moved = false;
4460 dpyinfo->last_mouse_scroll_bar = NULL; 4460 dpyinfo->last_mouse_scroll_bar = NULL;
4461 4461
4462 *time = dpyinfo->last_mouse_movement_time; 4462 *time = dpyinfo->last_mouse_movement_time;
@@ -4596,7 +4596,7 @@ w32_read_socket (struct terminal *terminal,
4596 4596
4597 /* Definitely not obscured, so mark as visible. */ 4597 /* Definitely not obscured, so mark as visible. */
4598 SET_FRAME_VISIBLE (f, 1); 4598 SET_FRAME_VISIBLE (f, 1);
4599 SET_FRAME_ICONIFIED (f, 0); 4599 SET_FRAME_ICONIFIED (f, false);
4600 SET_FRAME_GARBAGED (f); 4600 SET_FRAME_GARBAGED (f);
4601 if (!f->output_data.w32->asked_for_visible) 4601 if (!f->output_data.w32->asked_for_visible)
4602 DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f, 4602 DebPrint (("frame %p (%s) reexposed by WM_PAINT\n", f,
@@ -4658,7 +4658,7 @@ w32_read_socket (struct terminal *terminal,
4658 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) 4658 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window))
4659 { 4659 {
4660 clear_mouse_face (hlinfo); 4660 clear_mouse_face (hlinfo);
4661 hlinfo->mouse_face_hidden = 1; 4661 hlinfo->mouse_face_hidden = true;
4662 } 4662 }
4663 4663
4664 if (temp_index == sizeof temp_buffer / sizeof (short)) 4664 if (temp_index == sizeof temp_buffer / sizeof (short))
@@ -4683,7 +4683,7 @@ w32_read_socket (struct terminal *terminal,
4683 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) 4683 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window))
4684 { 4684 {
4685 clear_mouse_face (hlinfo); 4685 clear_mouse_face (hlinfo);
4686 hlinfo->mouse_face_hidden = 1; 4686 hlinfo->mouse_face_hidden = true;
4687 } 4687 }
4688 4688
4689 if (temp_index == sizeof temp_buffer / sizeof (short)) 4689 if (temp_index == sizeof temp_buffer / sizeof (short))
@@ -4761,7 +4761,7 @@ w32_read_socket (struct terminal *terminal,
4761 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window)) 4761 && !EQ (f->tool_bar_window, hlinfo->mouse_face_window))
4762 { 4762 {
4763 clear_mouse_face (hlinfo); 4763 clear_mouse_face (hlinfo);
4764 hlinfo->mouse_face_hidden = 1; 4764 hlinfo->mouse_face_hidden = true;
4765 } 4765 }
4766 4766
4767 if (temp_index == sizeof temp_buffer / sizeof (short)) 4767 if (temp_index == sizeof temp_buffer / sizeof (short))
@@ -4794,7 +4794,7 @@ w32_read_socket (struct terminal *terminal,
4794 4794
4795 if (hlinfo->mouse_face_hidden) 4795 if (hlinfo->mouse_face_hidden)
4796 { 4796 {
4797 hlinfo->mouse_face_hidden = 0; 4797 hlinfo->mouse_face_hidden = false;
4798 clear_mouse_face (hlinfo); 4798 clear_mouse_face (hlinfo);
4799 } 4799 }
4800 4800
@@ -4913,7 +4913,7 @@ w32_read_socket (struct terminal *terminal,
4913 the ButtonPress. */ 4913 the ButtonPress. */
4914 if (f != 0) 4914 if (f != 0)
4915 { 4915 {
4916 f->mouse_moved = 0; 4916 f->mouse_moved = false;
4917 if (!tool_bar_p) 4917 if (!tool_bar_p)
4918 f->last_tool_bar_item = -1; 4918 f->last_tool_bar_item = -1;
4919 } 4919 }
@@ -4940,7 +4940,7 @@ w32_read_socket (struct terminal *terminal,
4940 event; any subsequent mouse-movement Emacs events 4940 event; any subsequent mouse-movement Emacs events
4941 should reflect only motion after the 4941 should reflect only motion after the
4942 ButtonPress. */ 4942 ButtonPress. */
4943 f->mouse_moved = 0; 4943 f->mouse_moved = false;
4944 f->last_tool_bar_item = -1; 4944 f->last_tool_bar_item = -1;
4945 } 4945 }
4946 dpyinfo->last_mouse_frame = f; 4946 dpyinfo->last_mouse_frame = f;
@@ -5041,7 +5041,7 @@ w32_read_socket (struct terminal *terminal,
5041 { 5041 {
5042 case SIZE_MINIMIZED: 5042 case SIZE_MINIMIZED:
5043 SET_FRAME_VISIBLE (f, 0); 5043 SET_FRAME_VISIBLE (f, 0);
5044 SET_FRAME_ICONIFIED (f, 1); 5044 SET_FRAME_ICONIFIED (f, true);
5045 5045
5046 inev.kind = ICONIFY_EVENT; 5046 inev.kind = ICONIFY_EVENT;
5047 XSETFRAME (inev.frame_or_window, f); 5047 XSETFRAME (inev.frame_or_window, f);
@@ -5052,7 +5052,7 @@ w32_read_socket (struct terminal *terminal,
5052 bool iconified = FRAME_ICONIFIED_P (f); 5052 bool iconified = FRAME_ICONIFIED_P (f);
5053 5053
5054 SET_FRAME_VISIBLE (f, 1); 5054 SET_FRAME_VISIBLE (f, 1);
5055 SET_FRAME_ICONIFIED (f, 0); 5055 SET_FRAME_ICONIFIED (f, false);
5056 5056
5057 /* wait_reading_process_output will notice this 5057 /* wait_reading_process_output will notice this
5058 and update the frame's display structures. */ 5058 and update the frame's display structures. */
@@ -5099,7 +5099,7 @@ w32_read_socket (struct terminal *terminal,
5099 conditional again in revision 116727. martin */ 5099 conditional again in revision 116727. martin */
5100 if (iconified) 5100 if (iconified)
5101 SET_FRAME_VISIBLE (f, 1); 5101 SET_FRAME_VISIBLE (f, 1);
5102 SET_FRAME_ICONIFIED (f, 0); 5102 SET_FRAME_ICONIFIED (f, false);
5103 5103
5104 /* wait_reading_process_output will notice this 5104 /* wait_reading_process_output will notice this
5105 and update the frame's display structures. */ 5105 and update the frame's display structures. */
@@ -5636,7 +5636,7 @@ w32_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
5636 w->phys_cursor_type = cursor_type; 5636 w->phys_cursor_type = cursor_type;
5637 } 5637 }
5638 5638
5639 w->phys_cursor_on_p = 1; 5639 w->phys_cursor_on_p = true;
5640 5640
5641 /* If this is the active cursor, we need to track it with the 5641 /* If this is the active cursor, we need to track it with the
5642 system caret, so third party software like screen magnifiers 5642 system caret, so third party software like screen magnifiers
@@ -5674,7 +5674,7 @@ w32_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
5674 ? (w->phys_cursor.hpos < 0) 5674 ? (w->phys_cursor.hpos < 0)
5675 : (w->phys_cursor.hpos >= glyph_row->used[TEXT_AREA]))) 5675 : (w->phys_cursor.hpos >= glyph_row->used[TEXT_AREA])))
5676 { 5676 {
5677 glyph_row->cursor_in_fringe_p = 1; 5677 glyph_row->cursor_in_fringe_p = true;
5678 draw_fringe_bitmap (w, glyph_row, glyph_row->reversed_p); 5678 draw_fringe_bitmap (w, glyph_row, glyph_row->reversed_p);
5679 return; 5679 return;
5680 } 5680 }
@@ -5838,7 +5838,8 @@ x_new_font (struct frame *f, Lisp_Object font_object, int fontset)
5838 problems because the tip frame has no widget. */ 5838 problems because the tip frame has no widget. */
5839 if (NILP (tip_frame) || XFRAME (tip_frame) != f) 5839 if (NILP (tip_frame) || XFRAME (tip_frame) != f)
5840 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), 5840 adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f),
5841 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 3, 0, Qfont); 5841 FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 3,
5842 false, Qfont);
5842 } 5843 }
5843 5844
5844 /* X version sets font of input methods here also. */ 5845 /* X version sets font of input methods here also. */
@@ -5945,7 +5946,7 @@ x_set_offset (struct frame *f, register int xoff, register int yoff,
5945 x_calc_absolute_position (f); 5946 x_calc_absolute_position (f);
5946 5947
5947 block_input (); 5948 block_input ();
5948 x_wm_set_size_hint (f, (long) 0, 0); 5949 x_wm_set_size_hint (f, (long) 0, false);
5949 5950
5950 modified_left = f->left_pos; 5951 modified_left = f->left_pos;
5951 modified_top = f->top_pos; 5952 modified_top = f->top_pos;
@@ -6140,7 +6141,7 @@ x_set_window_size (struct frame *f, bool change_gravity,
6140 } 6141 }
6141 6142
6142 f->win_gravity = NorthWestGravity; 6143 f->win_gravity = NorthWestGravity;
6143 x_wm_set_size_hint (f, (long) 0, 0); 6144 x_wm_set_size_hint (f, (long) 0, false);
6144 6145
6145 f->want_fullscreen = FULLSCREEN_NONE; 6146 f->want_fullscreen = FULLSCREEN_NONE;
6146 w32fullscreen_hook (f); 6147 w32fullscreen_hook (f);
@@ -6452,7 +6453,7 @@ x_make_frame_invisible (struct frame *f)
6452 FRAME_SAMPLE_VISIBILITY set this. So do it by hand, 6453 FRAME_SAMPLE_VISIBILITY set this. So do it by hand,
6453 and synchronize with the server to make sure we agree. */ 6454 and synchronize with the server to make sure we agree. */
6454 SET_FRAME_VISIBLE (f, 0); 6455 SET_FRAME_VISIBLE (f, 0);
6455 SET_FRAME_ICONIFIED (f, 0); 6456 SET_FRAME_ICONIFIED (f, false);
6456 6457
6457 unblock_input (); 6458 unblock_input ();
6458} 6459}
@@ -6477,7 +6478,7 @@ x_iconify_frame (struct frame *f)
6477 SendMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, SC_MINIMIZE, 0); 6478 SendMessage (FRAME_W32_WINDOW (f), WM_SYSCOMMAND, SC_MINIMIZE, 0);
6478 6479
6479 SET_FRAME_VISIBLE (f, 0); 6480 SET_FRAME_VISIBLE (f, 0);
6480 SET_FRAME_ICONIFIED (f, 1); 6481 SET_FRAME_ICONIFIED (f, true);
6481 6482
6482 unblock_input (); 6483 unblock_input ();
6483} 6484}