Changed origin to use floats instead of ints to accomodate for scaling.

This commit is contained in:
Harrison Deng 2019-03-28 12:10:39 -05:00
parent d05554c379
commit 4d4d46ad1b

View File

@ -67,8 +67,8 @@ namespace RecrownedAthenaeum.ScreenSystem
textureBounds.Height = (int)(height * proportion);
textureBounds.X = (width) / 2;
textureBounds.Y = (height) / 2;
origin.X = texture.Width / 2;
origin.Y = texture.Height / 2;
origin.X = texture.Width / 2f;
origin.Y = texture.Height / 2f;
}
void DoRotate(float deltaf)