Changed origin to use floats instead of ints to accomodate for scaling.
This commit is contained in:
parent
d05554c379
commit
4d4d46ad1b
@ -67,8 +67,8 @@ namespace RecrownedAthenaeum.ScreenSystem
|
|||||||
textureBounds.Height = (int)(height * proportion);
|
textureBounds.Height = (int)(height * proportion);
|
||||||
textureBounds.X = (width) / 2;
|
textureBounds.X = (width) / 2;
|
||||||
textureBounds.Y = (height) / 2;
|
textureBounds.Y = (height) / 2;
|
||||||
origin.X = texture.Width / 2;
|
origin.X = texture.Width / 2f;
|
||||||
origin.Y = texture.Height / 2;
|
origin.Y = texture.Height / 2f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DoRotate(float deltaf)
|
void DoRotate(float deltaf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user