[FONT][WIN32SS] Refactor the loop (4 of 5)

This commit is contained in:
Katayama Hirofumi MZ 2018-08-19 13:38:06 +09:00 committed by Mark Jansen
parent 7b04962aed
commit b9b4c90303

View file

@ -2672,8 +2672,9 @@ ftGdiGlyphCacheGet(
ASSERT_FREETYPE_LOCK_HELD();
CurrentEntry = g_FontCacheListHead.Flink;
while (CurrentEntry != &g_FontCacheListHead)
for (CurrentEntry = g_FontCacheListHead.Flink;
CurrentEntry != &g_FontCacheListHead;
CurrentEntry = CurrentEntry->Flink)
{
FontEntry = CONTAINING_RECORD(CurrentEntry, FONT_CACHE_ENTRY, ListEntry);
if ((FontEntry->Face == Face) &&
@ -2682,7 +2683,6 @@ ftGdiGlyphCacheGet(
(FontEntry->RenderMode == RenderMode) &&
(SameScaleMatrix(&FontEntry->mxWorldToDevice, pmx)))
break;
CurrentEntry = CurrentEntry->Flink;
}
if (CurrentEntry == &g_FontCacheListHead)