Remove duplicate instantiation of PNG wxImage handler.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6028 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c765127f0d
commit
4bef335632
|
@ -350,8 +350,8 @@ bool DolphinApp::OnInit()
|
||||||
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strWiimotePlugin =
|
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strWiimotePlugin =
|
||||||
std::string(wiimotePluginFilename.mb_str());
|
std::string(wiimotePluginFilename.mb_str());
|
||||||
|
|
||||||
// Enable the PNG image handler
|
// Enable the PNG image handler for screenshots
|
||||||
wxInitAllImageHandlers();
|
wxImage::AddHandler(new wxPNGHandler);
|
||||||
|
|
||||||
SetEnableAlert(SConfig::GetInstance().m_LocalCoreStartupParameter.bUsePanicHandlers);
|
SetEnableAlert(SConfig::GetInstance().m_LocalCoreStartupParameter.bUsePanicHandlers);
|
||||||
|
|
||||||
|
|
|
@ -174,10 +174,6 @@ void Initialize(void *init)
|
||||||
g_Config.GameIniLoad(globals->game_ini);
|
g_Config.GameIniLoad(globals->game_ini);
|
||||||
|
|
||||||
g_Config.UpdateProjectionHack();
|
g_Config.UpdateProjectionHack();
|
||||||
#if defined(HAVE_WX) && HAVE_WX
|
|
||||||
// Enable support for PNG screenshots.
|
|
||||||
wxImage::AddHandler( new wxPNGHandler );
|
|
||||||
#endif
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
if (!OpenGL_Create(g_VideoInitialize, 640, 480))
|
if (!OpenGL_Create(g_VideoInitialize, 640, 480))
|
||||||
|
|
Loading…
Reference in New Issue