r37895 - trunk/gui/skin/font.c
7 Sep
2016
7 Sep
'16
11:11 a.m.
Author: ib Date: Wed Sep 7 14:11:29 2016 New Revision: 37895 Log: Speed up fntRead() a little bit. Although not really measurable, it should be a little bit faster. Modified: trunk/gui/skin/font.c Modified: trunk/gui/skin/font.c ============================================================================== --- trunk/gui/skin/font.c Mon Sep 5 23:31:07 2016 (r37894) +++ trunk/gui/skin/font.c Wed Sep 7 14:11:29 2016 (r37895) @@ -219,7 +219,7 @@ int fntRead(char *path, char *fname) if (!*buf) continue; - n = (strncmp(buf, "\"=", 2) == 0 ? 1 : 0); + n = (buf[0] == '"' && buf[1] == '=' ? 1 : 0); cutStr(buf, item, '=', n); cutStr(buf, param, '=', n + 1);
3604
Age (days ago)
3604
Last active (days ago)
0 comments
1 participants
participants (1)
-
ib