On linux use the current desktop resolution for the default fullscreen resolution, instead of the hard coded 640x480 resolution.

Also if the OpenGL backend throw a panic alert if the RGB to/from YUYV shaders fail to compile instead of an error log.  If these shaders fail to compile it should be reported.  I am not sure that a panic alert should be thrown in general when any shader fails to compile (as was discussed on IRC).

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7677 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-07-15 02:17:14 +00:00
parent 2eb1565aaa
commit a154df1e7c
2 changed files with 39 additions and 35 deletions

View File

@ -219,8 +219,10 @@ void XRRConfiguration::Update()
char *output_name = NULL;
if (SConfig::GetInstance().m_LocalCoreStartupParameter.strFullscreenResolution.find(':') ==
std::string::npos)
sscanf(SConfig::GetInstance().m_LocalCoreStartupParameter.strFullscreenResolution.c_str(),
"%ux%u", &fullWidth, &fullHeight);
{
fullWidth = fb_width;
fullHeight = fb_height;
}
else
sscanf(SConfig::GetInstance().m_LocalCoreStartupParameter.strFullscreenResolution.c_str(),
"%a[^:]: %ux%u", &output_name, &fullWidth, &fullHeight);