mirror of https://github.com/OpenTTD/OpenTTD.git
Codechange: Move RectPadding::zero definition to header. (#11461)
This potentially allows better inlining/optimization.
This commit is contained in:
parent
e2e0753916
commit
7d48a3f073
|
@ -48,5 +48,3 @@ Rect BoundingRect(const Rect &r1, const Rect &r2)
|
|||
|
||||
return r;
|
||||
}
|
||||
|
||||
const RectPadding RectPadding::zero = {0, 0, 0, 0};
|
||||
|
|
|
@ -65,6 +65,8 @@ struct RectPadding {
|
|||
inline uint Vertical() const { return this->top + this->bottom; }
|
||||
};
|
||||
|
||||
inline const RectPadding RectPadding::zero{};
|
||||
|
||||
/** Specification of a rectangle with absolute coordinates of all edges */
|
||||
struct Rect {
|
||||
int left;
|
||||
|
|
Loading…
Reference in New Issue