mirror of
https://github.com/minetest/minetest.git
synced 2025-01-10 23:37:29 +01:00
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:
parent
cda112493a
commit
751ede516b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user