153 |
|
|
154 |
min_ts = MAXINT; |
min_ts = MAXINT; |
155 |
min_index = 0; |
min_index = 0; |
156 |
for(i=0;i<FONT_CACHE_SIZE;i++) { |
for (i = 0; i < FONT_CACHE_SIZE; i++) { |
157 |
fc = font_cache[i]; |
fc = font_cache[i]; |
158 |
if (fc) { |
if (fc) { |
159 |
if (fc->style == style && fc->size == size) { |
if (fc->style == style && fc->size == size) { |
174 |
close_font(s, font_cache[min_index]); |
close_font(s, font_cache[min_index]); |
175 |
fc = open_font(s, style, size); |
fc = open_font(s, style, size); |
176 |
if (!fc) { |
if (!fc) { |
177 |
/* select_font never returns NULL */ |
/* select_font never returns NULL */ |
178 |
fc = &dummy_font; |
fc = &dummy_font; |
179 |
fc->system_font = 1; |
fc->system_font = 1; |
180 |
} |
} |
181 |
|
|
182 |
fc->style = style; |
fc->style = style; |