fixed dead code. I'm assuming this was actually what was meant

This commit is contained in:
techdragon.nguyen@gmail.com
2012-03-23 22:43:33 +00:00
parent 218db9d844
commit 4f2ad781c0

View File

@@ -210,8 +210,8 @@ float SimpleButton::GetEnlargedWidth()
mFont->SetScale(SCALE_SELECTED);
if(mText.size() < 20)
mFont->SetScale(SCALE_SELECTED_LARGE);
return mFont->GetStringWidth(mText.c_str());
mFont->SetScale(backup);
return mFont->GetStringWidth(mText.c_str());
}
ostream& SimpleButton::toString(ostream& out) const