Ninepatch boundaries are now on the outside of the given bounds.

This commit is contained in:
Harrison Deng 2019-03-05 21:36:57 -06:00
parent 78417186d1
commit 7b130f39ea

View File

@ -71,15 +71,15 @@ namespace RecrownedAthenaeum.SpecialTypes
{
Rectangle[] patches =
{
new Rectangle(0, 0, left, bottom),
new Rectangle(left, 0, width - left - right, bottom),
new Rectangle(width - right, 0, right, bottom),
new Rectangle(0, bottom, left, height - bottom - top),
new Rectangle(left, bottom, width - left - right, height - bottom - top),
new Rectangle(width - right, bottom, right, height - bottom - top),
new Rectangle(0, height - top, left, top),
new Rectangle(left, height - top, width - left - right, top),
new Rectangle(width - right, height - top, right, top),
new Rectangle(-left, -bottom, left, bottom),
new Rectangle(0, -bottom, width, bottom),
new Rectangle(width, -bottom, right, bottom),
new Rectangle(-left, 0, left, height),
new Rectangle(0, 0, width, height),
new Rectangle(width, 0, right, height),
new Rectangle(-left, height, left, top),
new Rectangle(0, height, width, top),
new Rectangle(width, height, right, top),
};
return patches;
}