Skip to content
Permalink
Browse files

Use skin font for usernames (fixes #2363)

  • Loading branch information
BlockMen committed Feb 20, 2015
1 parent cf4045f commit aa31e3c7f31fc00abc64551ebc03ed757311280a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/content_cao.cpp
@@ -962,7 +962,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
// Add a text node for showing the name
gui::IGUIEnvironment* gui = irr->getGUIEnvironment();
std::wstring wname = narrow_to_wide(m_name);
m_textnode = smgr->addTextSceneNode(gui->getBuiltInFont(),
m_textnode = smgr->addTextSceneNode(gui->getSkin()->getFont(),
wname.c_str(), video::SColor(255,255,255,255), node);
m_textnode->grab();
m_textnode->setPosition(v3f(0, BS*1.1, 0));

0 comments on commit aa31e3c

Please sign in to comment.
You can’t perform that action at this time.