Font: Fix 'Font#set_name' not actually changing underlying TTF_Font
This commit is contained in:
parent
78f9272e3d
commit
857693d4a1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue