Changeset - r26541:951390f34fc3
[Not reviewed]
master
0 1 0
Peter Nelson - 22 months ago 2022-08-30 07:57:19
peter1138@openttd.org
Cleanup: Simplify CenterBounds()
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/gfx_func.h
Show inline comments
 
@@ -139,7 +139,7 @@ bool FillDrawPixelInfo(DrawPixelInfo *n,
 
 */
 
static inline int CenterBounds(int min, int max, int size)
 
{
 
	return min + (max - min - size + 1) / 2;
 
	return (min + max - size + 1) / 2;
 
}
 

	
 
/* window.cpp */
0 comments (0 inline, 0 general)