[MPlayer-cvslog] r37895 - trunk/gui/skin/font.c
ib
subversion at mplayerhq.hu
Wed Sep 7 14:11:29 EEST 2016
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);
More information about the MPlayer-cvslog
mailing list