wok-next annotate fltk/stuff/fl_set_fonts_xft.patch @ rev 4385

Up: bind* (9.5.2)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Oct 14 21:35:31 2009 +0000 (2009-10-14)
parents
children
rev   line source
pankso@4243 1 --- src/fl_set_fonts_xft.cxx 2009-03-04 10:58:49.000000000 +0000
pankso@4243 2 +++ src/fl_set_fonts_xft.cxx 2009-03-04 11:01:25.000000000 +0000
pankso@4243 3 @@ -253,13 +253,13 @@
pankso@4243 4 // So the bit we want is up to the first comma - BUT some strings have
pankso@4243 5 // more than one name, separated by, guess what?, a comma...
pankso@4243 6 stop = start = first = 0;
pankso@4243 7 - stop = strchr((const char *)font, ',');
pankso@4243 8 - start = strchr((const char *)font, ':');
pankso@4243 9 + stop = strchr((char *)font, ',');
pankso@4243 10 + start = strchr((char *)font, ':');
pankso@4243 11 if ((stop) && (start) && (stop < start))
pankso@4243 12 {
pankso@4243 13 first = stop + 1; // discard first version of name
pankso@4243 14 // find first comma *after* the end of the name
pankso@4243 15 - stop = strchr((const char *)start, ',');
pankso@4243 16 + stop = strchr((char *)start, ',');
pankso@4243 17 }
pankso@4243 18 else
pankso@4243 19 {