Expand this one too, to be safe, if more floating point precision is required.

This commit is contained in:
The Dax 2013-08-21 11:31:19 -04:00
parent 1c1b41b7a2
commit 70e7b879a2

View file

@ -170,7 +170,7 @@ EventReturn PopupSliderChoiceFloat::HandleClick(EventParams &e) {
void PopupSliderChoiceFloat::Draw(UIContext &dc) {
Choice::Draw(dc);
char temp[5];
char temp[32];
sprintf(temp, "%2.2f", *value_);
dc.Draw()->DrawText(dc.theme->uiFont, temp, bounds_.x2() - 12, bounds_.centerY(), 0xFFFFFFFF, ALIGN_RIGHT | ALIGN_VCENTER);
}