From: <hs...@mt...> - 2007-06-17 12:18:23
|
$B:dK\$G$9!#(B > $B$_$J$_$G$9!#(B > > $B$^$?!"(Bgnome-terminal $B$J$I$KHf$Y$F%"%s%@!<%i%$%s$N0LCV$,$A$g$C$H>e2a$.$k(B > > (line_space=0 $B$G$b%+!<%=%k$N2<C<$h$j(B 2px $B>e$K$J$C$F$$$k(B)$BMM$K;W$$$^$9!#(B > > ($B8=:_$O(B x_draw_str.c $B$K0\F0$7$F$$$k%=!<%9%3!<%I$G$9$,(B) x_screen.c $B$N(B > > 1.108$B"*(B1.109 $B$NJQ99$K$h$k$b$N$H;W$&$N$G$9$,!"La$9$H2?$+LdBj$,=P$k$N$G(B > $B$7$g$&$+!#(B > > > http://mlterm.cvs.sourceforge.net/mlterm/mlterm/xwindow/x_screen.c?r1=1.108&r2=1.109 > > $B$b$&7P0^$r$h$/3P$($F$$$J$$$N$G$9$,!"$R$H$3$m2<@~$N0LCV$,Dc$/$J$j$9$.$F(B > $B!V2<@~$,I=<($5$l$J$$!W$H$$$&Js9p$,IQHK$K$5$"$l$F$$$?$N$G!"(B > $B%Y!<%9%i%$%s$K=q$/$h$&$K$7$?$N$@$C$?$+$H!#(B > > $B:#8+$k$H$?$7$+$K>e$9$.$k$h$&$J5$$b$9$k$N$G!"$b$&(B 1px $B$O2<$2$F$_$^$9!#(B > > $BE:IU$N%Q%C%A$G(B > $B!&B@$/$9$kogCM$r(B 16px -> 20px$B$K(B > $B!&2<@~$NI=<(0LCV$r(B 1px $B2<$2(B > $B$G$9$,!"$3$N$/$i$$$N%P%i%s%9$G$$$+$,$G$7$g$&$+(B? $B%+!<%=%k$dH?E>NN0h$,2<@~$GJ,CG$5$l$k$N$O8+$E$i$$$N$G(B height $B$r(B $B4p=`$K$9$k$N$O%@%a$G$7$g$&$+!#(B $B$3$A$i$N4D6-$G$O2<@~$,I=<($5$l$J$$$3$H$O$J$5$=$&$G$9$,!#(B ----------------------------------- $B:dK\(B $B9@B'(B <hs...@mt...> --- xwindow/x_draw_str.c.orig Mon Sep 6 15:15:27 2004 +++ xwindow/x_draw_str.c Sun Jun 17 20:51:19 2007 @@ -129,6 +129,7 @@ int end_of_str ; u_int height_to_baseline ; u_int current_width ; + u_int underline_thickness ; XftChar8 * str8 ; XftChar32 * str32 ; u_int str_len ; @@ -393,10 +394,11 @@ } else { + underline_thickness = ((height_to_baseline - top_margin) / 20) + 1 ; x_window_fill_with( window , x_get_color( color_man , fg_color)->pixel , - x , y + height_to_baseline , - current_width - x , ((height_to_baseline - bottom_margin)>>4) +1 ) ; + x , y + height - underline_thickness , + current_width - x , underline_thickness ) ; } } @@ -527,6 +529,7 @@ int end_of_str ; u_int height_to_baseline ; u_int current_width ; + u_int underline_thickness ; u_char * str ; XChar2b * str2b ; u_int str_len ; @@ -824,10 +827,11 @@ } else { + underline_thickness = ((height_to_baseline - top_margin) / 20) + 1 ; x_window_fill_with( window , x_get_color( color_man , fg_color)->pixel , - x , y + height_to_baseline, - current_width - x , ((height_to_baseline - bottom_margin)>>4) +1 ) ; + x , y + height - underline_thickness , + current_width - x , underline_thickness ) ; } } |