ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtfont.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtfont.C (file contents):
Revision 1.192 by root, Thu May 22 18:54:33 2014 UTC vs.
Revision 1.195 by root, Mon Sep 7 14:50:56 2015 UTC

934 // ignore characters we wouldn't use anyways 934 // ignore characters we wouldn't use anyways
935 bool careful; 935 bool careful;
936 if (!has_char (*t, &prop, careful)) 936 if (!has_char (*t, &prop, careful))
937 continue; 937 continue;
938 938
939 XChar2b ch = { *t >> 8, *t }; 939 // the casts are needed in C++11 (see 8.5.1)
940 XChar2b ch = { (unsigned char)(*t >> 8), (unsigned char)*t };
940 941
941 XCharStruct g; 942 XCharStruct g;
942 int dir_ret, asc_ret, des_ret; 943 int dir_ret, asc_ret, des_ret;
943 XTextExtents16 (f, &ch, 1, &dir_ret, &asc_ret, &des_ret, &g); 944 XTextExtents16 (f, &ch, 1, &dir_ret, &asc_ret, &des_ret, &g);
944 945
1044 dTermDisplay; 1045 dTermDisplay;
1045 dTermGC; 1046 dTermGC;
1046 1047
1047 bool slow = this->slow 1048 bool slow = this->slow
1048 || width != term->fwidth 1049 || width != term->fwidth
1049 || height != term->fheight; 1050 || height != term->fheight
1051 || ascent != f->ascent;
1050 1052
1051 int base = ascent; // sorry, incorrect: term->fbase; 1053 int base = ascent; // sorry, incorrect: term->fbase;
1052 1054
1053 XGCValues v; 1055 XGCValues v;
1054 v.foreground = term->pix_colors[fg]; 1056 v.foreground = term->pix_colors[fg];
1604 cs = codeset_from_name (spec + sizeof ("codeset=") - 1); 1606 cs = codeset_from_name (spec + sizeof ("codeset=") - 1);
1605 else 1607 else
1606 rxvt_warn ("unknown parameter '%s' in font specification, skipping.\n", spec); 1608 rxvt_warn ("unknown parameter '%s' in font specification, skipping.\n", spec);
1607 1609
1608 desc++; 1610 desc++;
1609 while (*desc <= ' ') desc++; 1611 while (*desc <= ' ' && *desc) desc++;
1610 } 1612 }
1611 1613
1612 end = strchr (desc, ','); 1614 end = strchr (desc, ',');
1613 if (!end) 1615 if (!end)
1614 end = desc + strlen (desc); 1616 end = desc + strlen (desc);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines