Ninepatch boundaries are now on the outside of the given bounds.
This commit is contained in:
parent
78417186d1
commit
7b130f39ea
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user