mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user