ref: 24d104e2e812a91f3e1d7e4b4dc8b5adf8a74fbc
parent: 74c9931ebbfb73c013a808c17e07f277752dc2d3
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Jul 19 05:02:17 EDT 2019
Tweak in Font.cpp MSVC2003 would complain about that code because it didn't understand the C++ standard. It looked ugly anyway.
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1715,11 +1715,13 @@
static CachedGlyph* GetGlyphCached(FontObject *font_object, unsigned long unicode_value)
{
- for (CachedGlyph *glyph = font_object->glyph_list_head; glyph != NULL; glyph = glyph->next)
+ CachedGlyph *glyph;
+
+ for (glyph = font_object->glyph_list_head; glyph != NULL; glyph = glyph->next)
if (glyph->unicode_value == unicode_value)
return glyph;
- CachedGlyph *glyph = (CachedGlyph*)malloc(sizeof(CachedGlyph));
+ glyph = (CachedGlyph*)malloc(sizeof(CachedGlyph));
if (glyph)
{