diff --git a/src/core/geometry_type.hpp b/src/core/geometry_type.hpp index 2bd8ffbade..3ed889d57b 100644 --- a/src/core/geometry_type.hpp +++ b/src/core/geometry_type.hpp @@ -44,6 +44,24 @@ struct Rect { int bottom; }; +struct Rect16 { + int16 left; + int16 top; + int16 right; + int16 bottom; +}; + +template +OUT ConvertRect(const IN &in) +{ + OUT out; + out.left = in.left; + out.top = in.top; + out.right = in.right; + out.bottom = in.bottom; + return out; +} + /** * Specification of a rectangle with an absolute top-left coordinate and a * (relative) width/height