region: use correct width/height in inset test
This commit is contained in:
parent
69864bdfcd
commit
08783ef1a3
@ -270,8 +270,8 @@ template <typename T>
|
|||||||
util::region<T>
|
util::region<T>
|
||||||
util::region<T>::inset (T mag)
|
util::region<T>::inset (T mag)
|
||||||
{
|
{
|
||||||
CHECK_GE (w - x, 2 * mag);
|
CHECK_GE (w, 2 * mag);
|
||||||
CHECK_GE (h - y, 2 * mag);
|
CHECK_GE (h, 2 * mag);
|
||||||
|
|
||||||
return { x + mag, y + mag, w - 2 * mag, h - 2 * mag };
|
return { x + mag, y + mag, w - 2 * mag, h - 2 * mag };
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user