summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-11 21:50:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-11 21:50:48 +0200
commit502b4a462b8d90af75db043e9e180ba959c37583 (patch)
tree896412b9541745401be70601ae45faec04539eef /src
parentbbb5a9f343987c6952ca5ca5466dbd40ddf80997 (diff)
downloadmana-client-502b4a462b8d90af75db043e9e180ba959c37583.tar.gz
mana-client-502b4a462b8d90af75db043e9e180ba959c37583.tar.bz2
mana-client-502b4a462b8d90af75db043e9e180ba959c37583.tar.xz
mana-client-502b4a462b8d90af75db043e9e180ba959c37583.zip
Simplified conversion of font size to index of dropdown
Diffstat (limited to 'src')
-rw-r--r--src/gui/setup_video.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp
index 52d1a4c2..9add3251 100644
--- a/src/gui/setup_video.cpp
+++ b/src/gui/setup_video.cpp
@@ -281,27 +281,7 @@ Setup_Video::Setup_Video():
mParticleDetailField->setCaption(particleDetailToString(mParticleDetail));
mParticleDetailSlider->setValue(mParticleDetail);
- int fontSizeSelected;
- switch (mFontSize)
- {
- case 10:
- fontSizeSelected = 0;
- break;
- case 11:
- fontSizeSelected = 1;
- break;
- case 12:
- fontSizeSelected = 2;
- break;
- case 13:
- fontSizeSelected = 3;
- break;
- default:
- fontSizeSelected = 1;
- break;
- }
-
- mFontSizeDropDown->setSelected(fontSizeSelected);
+ mFontSizeDropDown->setSelected(mFontSize - 10);
mFontSizeDropDown->adjustHeight();
// Do the layout