comparison src/redisplay.c @ 3094:ad2f4ae9895b

[xemacs-hg @ 2005-11-26 11:45:47 by stephent] Xft merge. <87k6ev4p8q.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Sat, 26 Nov 2005 11:46:25 +0000
parents facf3239ba30
children 316fddbf58e2
comparison
equal deleted inserted replaced
3093:769dc945b085 3094:ad2f4ae9895b
4175 SET_CURRENT_MODE_CHARS_PIXSIZE; 4175 SET_CURRENT_MODE_CHARS_PIXSIZE;
4176 4176
4177 dash_pixsize = 4177 dash_pixsize =
4178 redisplay_text_width_string (w, findex, &ch, Qnil, 0, 4178 redisplay_text_width_string (w, findex, &ch, Qnil, 0,
4179 1); 4179 1);
4180 4180
4181 num_to_add = (max_pixsize - cur_pixsize) / dash_pixsize; 4181 if (dash_pixsize == 0)
4182 num_to_add++; 4182 num_to_add = 0;
4183 else {
4184 num_to_add = (max_pixsize - cur_pixsize) / dash_pixsize;
4185 num_to_add++;
4186 }
4183 } 4187 }
4184 4188
4185 while (num_to_add--) 4189 while (num_to_add--)
4186 pos = add_string_to_fstring_db_runes 4190 pos = add_string_to_fstring_db_runes
4187 (data, (const Ibyte *) "-", pos, pos, max_pos); 4191 (data, (const Ibyte *) "-", pos, pos, max_pos);