Fixed duplicates in options screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
ffc53dabf6
commit
686d727320
@ -153,7 +153,8 @@ void OptionsScreenVideo::init()
|
|||||||
{
|
{
|
||||||
found_config_res = true;
|
found_config_res = true;
|
||||||
}
|
}
|
||||||
else if (w == 800 && h == 600)
|
|
||||||
|
if (w == 800 && h == 600)
|
||||||
{
|
{
|
||||||
found_800_600 = true;
|
found_800_600 = true;
|
||||||
}
|
}
|
||||||
@ -187,6 +188,19 @@ void OptionsScreenVideo::init()
|
|||||||
const int h = UserConfigParams::m_height;
|
const int h = UserConfigParams::m_height;
|
||||||
const float ratio = (float)w / h;
|
const float ratio = (float)w / h;
|
||||||
|
|
||||||
|
if (w == 800 && h == 600)
|
||||||
|
{
|
||||||
|
found_800_600 = true;
|
||||||
|
}
|
||||||
|
else if (w == 1024 && h == 640)
|
||||||
|
{
|
||||||
|
found_1024_640 = true;
|
||||||
|
}
|
||||||
|
else if (w == 1024 && h == 768)
|
||||||
|
{
|
||||||
|
found_1024_768 = true;
|
||||||
|
}
|
||||||
|
|
||||||
char name[32];
|
char name[32];
|
||||||
sprintf( name, "%ix%i", w, h );
|
sprintf( name, "%ix%i", w, h );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user