1
0
Fork 0

Cleanup: Simplify CenterBounds()

pull/10169/head
Peter Nelson 2022-08-30 08:57:19 +01:00 committed by PeterN
parent ab55d3e1fa
commit 18201dfbc3
1 changed files with 1 additions and 1 deletions

View File

@ -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) 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 */ /* window.cpp */