summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c
index ab413a858..9c158569e 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -53,8 +53,9 @@ static StringID *BuildDynamicDropdown(StringID base, int num)
static int GetCurRes()
{
int i;
- for(i=0; i!=_num_resolutions; i++)
- if (_resolutions[i][0] == _cur_resolution[0] && _resolutions[i][1] == _cur_resolution[1])
+ for(i = 0; i != _num_resolutions; i++)
+ if (_resolutions[i][0] == _screen.width &&
+ _resolutions[i][1] == _screen.height)
break;
return i;
}