Fix incorrect color emoji position after resizing window

This commit is contained in:
Benau 2022-10-31 13:18:54 +08:00
parent 4ad30fa2bf
commit 412f30d2c1

View File

@ -2445,9 +2445,9 @@ void IrrDriver::resizeWindow()
{ {
#ifndef SERVER_ONLY #ifndef SERVER_ONLY
// Reload fonts // Reload fonts
font_manager->getFont<RegularFace>()->init();
font_manager->getFont<BoldFace>()->init(); font_manager->getFont<BoldFace>()->init();
font_manager->getFont<DigitFace>()->init(); font_manager->getFont<DigitFace>()->init();
font_manager->getFont<RegularFace>()->init();
// Reload GUIEngine // Reload GUIEngine
GUIEngine::reloadForNewSize(); GUIEngine::reloadForNewSize();
if (World::getWorld()) if (World::getWorld())