Sdk/Console: Fix SetTextFont
Former-commit-id: de1790fbadff6fec592f875dc9f6b24a3037dc45
This commit is contained in:
parent
346e9d7081
commit
823a6f70e6
|
|
@ -186,6 +186,12 @@ namespace Ndk
|
||||||
|
|
||||||
void Console::SetTextFont(Nz::FontRef font)
|
void Console::SetTextFont(Nz::FontRef font)
|
||||||
{
|
{
|
||||||
|
NazaraAssert(font && font->IsValid(), "Invalid font");
|
||||||
|
|
||||||
|
m_defaultFont = std::move(font);
|
||||||
|
m_historyDrawer.SetFont(m_defaultFont);
|
||||||
|
m_inputDrawer.SetFont(m_defaultFont);
|
||||||
|
|
||||||
Layout();
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue