region: use correct width/height in inset test

This commit is contained in:
Danny Robson 2015-03-02 18:48:42 +11:00
parent 69864bdfcd
commit 08783ef1a3

View File

@ -270,8 +270,8 @@ template <typename T>
util::region<T>
util::region<T>::inset (T mag)
{
CHECK_GE (w - x, 2 * mag);
CHECK_GE (h - y, 2 * mag);
CHECK_GE (w, 2 * mag);
CHECK_GE (h, 2 * mag);
return { x + mag, y + mag, w - 2 * mag, h - 2 * mag };
}