1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-01 21:45:38 +00:00
This commit is contained in:
gus 2014-07-22 12:10:58 +02:00
parent 1e7c4f26df
commit 546b44a3be
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@
#include <extern/shiny/Platforms/Ogre/OgrePlatform.hpp>
#include <components/ogreinit/ogreinit.hpp>
#include <Overlay/OgreFontManager.h>
#include <components/bsa/resources.hpp>
@ -297,6 +298,8 @@ std::auto_ptr<sh::Factory> CS::Editor::setupGraphics()
sh::Factory::getInstance ().setGlobalSetting ("num_lights", "8");
Ogre::FontManager* fontManager = new Ogre::FontManager();
/// \todo add more configurable shiny settings
return factory;

View file

@ -262,7 +262,7 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
billboardNode->setPosition(8192 * iter->getX() + 4096, 8192 * iter->getY() + 4096, 0);
Ogre::Font* font;
if (Ogre::FontManager::getSingletonPtr()->getByName("CellBillboardFont" + iter->getId(mWorldspace)).isNull())
if (!Ogre::FontManager::getSingletonPtr()->resourceExists("CellBillboardFont" + iter->getId(mWorldspace)))
{
font = Ogre::FontManager::getSingletonPtr()->create("CellBillboardFont" + iter->getId(mWorldspace), "Data00000001").getPointer();
font->setType(Ogre::FT_TRUETYPE);