Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 6042:460b4ba2d452
[gaim-migrate @ 6492]
This fixes http://sourceforge.net/tracker/index.php?func=detail&aid=761532&group_id=235&atid=100235
It basically puts the cap on the max font size at 100. I thought this was
done a while ago, but maybe not?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 06 Jul 2003 08:11:00 +0000 |
parents | 156953fe3e14 |
children | 19cb60247a6c |
comparison
equal
deleted
inserted
replaced
6041:ac0dd4dd9465 | 6042:460b4ba2d452 |
---|---|
1226 sscanf (size + 1, "%hd", &font->size); | 1226 sscanf (size + 1, "%hd", &font->size); |
1227 font->size = MAX (0, 3 - font->size); | 1227 font->size = MAX (0, 3 - font->size); |
1228 } else if (isdigit (*size)) { | 1228 } else if (isdigit (*size)) { |
1229 sscanf (size, "%hd", &font->size); | 1229 sscanf (size, "%hd", &font->size); |
1230 } | 1230 } |
1231 if (font->size > 100) | |
1232 font->size = 100; | |
1231 } else if (oldfont) | 1233 } else if (oldfont) |
1232 font->size = oldfont->size; | 1234 font->size = oldfont->size; |
1233 g_free(size); | 1235 g_free(size); |
1234 fonts = g_slist_prepend (fonts, font); | 1236 fonts = g_slist_prepend (fonts, font); |
1235 } | 1237 } |