fna-workbench

fna-workbench Commit Details


Date:2016-02-05 12:21:58 (9 years 7 months ago)
Author:Ethan Lee
Branch:master
Commit:e0394340fe3c5063ccf107a3267ac27f87b250f3
Parents: 5549eff1d7ec9180a0bb26f426029601217e2f25
Message:Add spacing for readability

Changes:

File differences

src/Graphics/SpriteBatch.cs
860860
861861
862862
863
863864
864865
865866
......
870871
871872
872873
874
873875
874876
875877
......
885887
886888
887889
890
888891
889892
893
890894
891895
892896
{
float inverseTexW = 1.0f / (float) texture.Width;
float inverseTexH = 1.0f / (float) texture.Height;
sourceX = sourceRectangle.Value.X * inverseTexW;
sourceY = sourceRectangle.Value.Y * inverseTexH;
sourceW = Math.Max(
sourceRectangle.Value.Height,
MathHelper.MachineEpsilonFloat
) * inverseTexH;
originX = (origin.X / sourceW) * inverseTexW;
originY = (origin.Y / sourceH) * inverseTexH;
sourceY = 0.0f;
sourceW = 1.0f;
sourceH = 1.0f;
originX = origin.X * (1.0f / (float) texture.Width);
originY = origin.Y * (1.0f / (float) texture.Height);
if (!destSizeInPixels)
{
destW *= texture.Width;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.80840s using 13 queries.