mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
Cleanup: Simplify CenterBounds()
This commit is contained in:
parent
ab55d3e1fa
commit
18201dfbc3
@ -139,7 +139,7 @@ bool FillDrawPixelInfo(DrawPixelInfo *n, int left, int top, int width, int heigh
|
||||
*/
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user