Tidy-up some code
This commit is contained in:
parent
69f3fbcd5a
commit
84c1e00c95
1 changed files with 2 additions and 3 deletions
|
@ -964,10 +964,11 @@ static unsigned char GammaCorrect(unsigned char value)
|
||||||
static Glyph* GetGlyph(FontObject *font_object, unsigned long unicode_value)
|
static Glyph* GetGlyph(FontObject *font_object, unsigned long unicode_value)
|
||||||
{
|
{
|
||||||
Glyph **glyph_pointer = &font_object->glyph_list_head;
|
Glyph **glyph_pointer = &font_object->glyph_list_head;
|
||||||
|
Glyph *glyph;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
Glyph *glyph = *glyph_pointer;
|
glyph = *glyph_pointer;
|
||||||
|
|
||||||
if (glyph->unicode_value == unicode_value)
|
if (glyph->unicode_value == unicode_value)
|
||||||
{
|
{
|
||||||
|
@ -985,8 +986,6 @@ static Glyph* GetGlyph(FontObject *font_object, unsigned long unicode_value)
|
||||||
glyph_pointer = &glyph->next;
|
glyph_pointer = &glyph->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
Glyph *glyph = *glyph_pointer;
|
|
||||||
|
|
||||||
// Couldn't find glyph - overwrite the old at the end.
|
// Couldn't find glyph - overwrite the old at the end.
|
||||||
// The one at the end hasn't been used in a while anyway.
|
// The one at the end hasn't been used in a while anyway.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue