Introduced OrigSize for original size of textures

This commit is contained in:
Flamefire committed 2013-05-03 22:29:47 +02:00
1 parent 151fab8857
commit 5bbfd07e01
15 files changed
+206 -229

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ namespace VocaluxeLib.Menu
{
RectangleF bounds2 = new RectangleF(bounds.X, bounds.Y, bounds.W, bounds.H);
RectangleF rect2;
CHelper.SetRect(bounds2, out rect2, (float)texture.Width / texture.Height, aspect);
CHelper.SetRect(bounds2, out rect2, texture.OrigAspect, aspect);
rect.X = rect2.X;
rect.Y = rect2.Y;