/[qemacs]/qemacs/display.c
ViewVC logotype

Diff of /qemacs/display.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by chqrlie, Thu May 5 17:21:54 2005 UTC revision 1.3 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 153  QEFont *select_font(QEditScreen *s, int Line 153  QEFont *select_font(QEditScreen *s, int
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) {
# Line 174  QEFont *select_font(QEditScreen *s, int Line 174  QEFont *select_font(QEditScreen *s, int
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;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26