ProfilerGraph: Increase buffer size for min/max formatting

Fixes values being cut off, e.g. "1.0000e+06" to "1.0000e+0".
This commit is contained in:
Desour 2024-03-20 15:28:37 +01:00
parent cda112493a
commit 751ede516b
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void ProfilerGraph::draw(s32 x_left, s32 y_bottom, video::IVideoDriver *driver,
}
const s32 texth = 15;
char buf[10];
char buf[20];
if (floorf(show_max) == show_max)
porting::mt_snprintf(buf, sizeof(buf), "%.5g", show_max);
else