aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorEli Zaretskii2017-05-02 11:04:33 +0300
committerEli Zaretskii2017-05-02 11:04:33 +0300
commit5f75304f61d6533a8a8dcad1da3b5a223bceaa71 (patch)
treea0179d2382703b0ae81434a93ec4b51a2c409e30 /src/w32term.c
parent9c2b03fe3fc7695867d883f4918d74ba9a7c262e (diff)
downloademacs-5f75304f61d6533a8a8dcad1da3b5a223bceaa71.tar.gz
emacs-5f75304f61d6533a8a8dcad1da3b5a223bceaa71.zip
Avoid compilation warnings
* src/w32fns.c (Fx_file_dialog, w32_parse_and_hook_hot_key): * src/w32term.c (x_draw_glyph_string): * src/w32fns.c (compute_tip_xy): * src/w32font.c (w32font_text_extents): * src/w32menu.c (set_frame_menubar): * src/search.c (Freplace_match): Avoid compiler warnings in optimized builds.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/w32term.c b/src/w32term.c
index a2537e204d8..0f9dce9190c 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -2454,7 +2454,7 @@ x_draw_glyph_string (struct glyph_string *s)
2454 thickness = font->underline_thickness; 2454 thickness = font->underline_thickness;
2455 else 2455 else
2456 thickness = 1; 2456 thickness = 1;
2457 if (x_underline_at_descent_line) 2457 if (x_underline_at_descent_line || !font)
2458 position = (s->height - thickness) - (s->ybase - s->y); 2458 position = (s->height - thickness) - (s->ybase - s->y);
2459 else 2459 else
2460 { 2460 {
@@ -2467,9 +2467,9 @@ x_draw_glyph_string (struct glyph_string *s)
2467 ROUND (x) = floor (x + 0.5) */ 2467 ROUND (x) = floor (x + 0.5) */
2468 2468
2469 if (x_use_underline_position_properties 2469 if (x_use_underline_position_properties
2470 && font && font->underline_position >= 0) 2470 && font->underline_position >= 0)
2471 position = font->underline_position; 2471 position = font->underline_position;
2472 else if (font) 2472 else
2473 position = (font->descent + 1) / 2; 2473 position = (font->descent + 1) / 2;
2474 } 2474 }
2475 position = max (position, underline_minimum_offset); 2475 position = max (position, underline_minimum_offset);