From a1421c23265b56ccffbf9552573232f595fd19e9 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 13 Apr 2008 18:43:58 +0000 Subject: [PATCH] Added 1 pixel to packing distances - seems to reduce packing artifacts at the seams. --- Source/Utilities/TexturePacker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Utilities/TexturePacker.cs b/Source/Utilities/TexturePacker.cs index ab7492f6..4641aa41 100644 --- a/Source/Utilities/TexturePacker.cs +++ b/Source/Utilities/TexturePacker.cs @@ -152,8 +152,8 @@ namespace OpenTK left = new Node(); right = new Node(); - int dw = this.rect.Width - item.Width; - int dh = this.rect.Height - item.Height; + int dw = this.rect.Width - item.Width + 1; + int dh = this.rect.Height - item.Height + 1; if (dw > dh) {