2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-11 04:27:42 +00:00

Pixel factor switching fix

This commit is contained in:
Jack Andersen
2015-12-07 19:41:30 -10:00
parent cb8d7145c2
commit f4c0903eee
4 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ void ViewResources::init(boo::IGraphicsDataFactory* factory, FontCache* fcache,
m_heading14 = fcache->prepMainFont(factory, LatinAndJapaneseCharFilter, false, 14.f, dpi);
m_heading18 = fcache->prepMainFont(factory, LatinAndJapaneseCharFilter, false, 18.f, dpi);
m_curveFont = fcache->prepCurvesFont(factory, AllCharFilter, false, 8.f, dpi);
m_fontData = factory->commit();
switch (factory->platform())
{
case boo::IGraphicsDataFactory::Platform::OGL:
@@ -49,7 +48,6 @@ void ViewResources::resetPixelFactor(float pf)
m_heading14 = m_fcache->prepMainFont(m_factory, LatinAndJapaneseCharFilter, false, 14.f, dpi);
m_heading18 = m_fcache->prepMainFont(m_factory, LatinAndJapaneseCharFilter, false, 18.f, dpi);
m_curveFont = m_fcache->prepCurvesFont(m_factory, AllCharFilter, false, 8.f, dpi);
m_fontData = m_factory->commit();
m_fcache->closeBuiltinFonts();
}