diff -upr mlterm-3.1.0.org/xwindow/x_draw_str.c mlterm-3.1.0.underline/xwindow/x_draw_str.c --- mlterm-3.1.0.org/xwindow/x_draw_str.c 2012-04-20 09:03:23.000000000 +0900 +++ mlterm-3.1.0.underline/xwindow/x_draw_str.c 2012-05-09 19:20:35.000000000 +0900 @@ -406,11 +406,12 @@ fc_draw_str( } else { + const u_int line_height = ((ascent - bottom_margin) >> 4) + 1; x_window_fill_with( window , x_get_xcolor( color_man , fg_color) , - x , y + ascent , + x , y + height - line_height , current_width - x , - ((ascent - bottom_margin) >> 4) + 1 ) ; + line_height ) ; } } @@ -878,11 +879,12 @@ xcore_draw_str( } else { + const u_int line_height = ((ascent - bottom_margin) >> 4) + 1; x_window_fill_with( window , x_get_xcolor( color_man , fg_color) , - x , y + ascent , + x , y + height - line_height , current_width - x , - ((ascent - bottom_margin) >> 4) + 1) ; + line_height ) ; } }