MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsEmptyRect

Function IsEmptyRect

src/core/geometry_func.hpp:22–25  ·  view source on GitHub ↗

* Check if a rectangle is empty. * @param r Rectangle to check. * @return True if and only if the rectangle doesn't define space. */

Source from the content-addressed store, hash-verified

20 * @return True if and only if the rectangle doesn't define space.
21 */
22inline bool IsEmptyRect(const Rect &r)
23{
24 return (r.left | r.top | r.right | r.bottom) == 0;
25}
26
27Rect BoundingRect(const Rect &r1, const Rect &r2);
28

Callers 4

BoundingRectFunction · 0.85
PaintMethod · 0.85
ReleaseVideoBufferMethod · 0.85
PaintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected