Font: Fix 'Font#set_name' not actually changing underlying TTF_Font

This commit is contained in:
Jonas Kulla 2014-01-04 13:00:38 +01:00
parent 78f9272e3d
commit 857693d4a1
1 changed files with 4 additions and 0 deletions

View File

@ -210,7 +210,11 @@ const char *Font::getName() const
void Font::setName(const char *value)
{
if (p->name == value)
return;
p->name = value;
p->sdlFont = shState->fontPool().request(value, p->size);
}
void Font::setSize(int value)