Use the irrlicht 1.7 feature that enables smooth scaling in the GUI (ahhhh, my eyes =). A few known issues have been introduced, they will hopefully be fixed soonish.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
81bb0ac8dc
commit
72c8240bfc
@ -174,6 +174,13 @@ void IrrDriver::initDevice()
|
||||
m_video_driver = m_device->getVideoDriver();
|
||||
const std::string &font = file_manager->getFontFile("DomesticManners.xml");
|
||||
m_race_font = m_gui_env->getFont(font.c_str());
|
||||
|
||||
#if (IRRLICHT_VERSION_MAJOR == 1) && (IRRLICHT_VERSION_MINOR >= 7)
|
||||
video::SMaterial& material2D = m_video_driver->getMaterial2D();
|
||||
material2D.TextureLayer[0].BilinearFilter=true;
|
||||
material2D.AntiAliasing=video::EAAM_FULL_BASIC;
|
||||
//m_video_driver->enableMaterial2D();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -250,6 +250,8 @@ void render(float elapsed_time)
|
||||
g_skin->drawBGFadeColor();
|
||||
}
|
||||
|
||||
g_driver->enableMaterial2D();
|
||||
|
||||
if (gamestate == MENU || gamestate == INGAME_MENU)
|
||||
{
|
||||
g_skin->renderSections();
|
||||
@ -267,6 +269,8 @@ void render(float elapsed_time)
|
||||
{
|
||||
RaceManager::getWorld()->getRaceGUI()->renderGlobal(elapsed_time);
|
||||
}
|
||||
|
||||
g_driver->enableMaterial2D(false);
|
||||
} // render
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user