main
Evan Hemsley 2020-07-17 13:56:30 -07:00
parent 0999b7da78
commit a9350b8abe
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ A simple script for managing resolution scaling in FNA.
Call **ResolutionScaler.Init** with your display width and height, and your virtual width and height.
```cs
Resolution.Init(
ResolutionScaler.Init(
GraphicsDevice.PresentationParameters.BackBufferWidth,
GraphicsDevice.PresentationParameters.BackBufferHeight,
PLAY_AREA_WIDTH,
@ -25,7 +25,7 @@ Then you can pass **ResolutionScaler.TransformMatrix** to FNA's *SpriteBatch* to
null,
null,
null,
Resolution.TransformMatrix
ResolutionScaler.TransformMatrix
);
SpriteBatch.Draw(