rename resolution scaler

main
Evan Hemsley 2020-07-17 20:16:19 -07:00
parent 7f11936e5e
commit 089f210c88
2 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,6 @@
using System.IO; using System.IO;
using Encompass; using Encompass;
using IndependentResolutionRendering; using MoonTools;
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Graphics;
using PongFE.Components; using PongFE.Components;
@ -44,7 +44,7 @@ namespace PongFE
protected override void LoadContent() protected override void LoadContent()
{ {
Resolution.Init( ResolutionScaler.Init(
GraphicsDevice.PresentationParameters.BackBufferWidth, GraphicsDevice.PresentationParameters.BackBufferWidth,
GraphicsDevice.PresentationParameters.BackBufferHeight, GraphicsDevice.PresentationParameters.BackBufferHeight,
PLAY_AREA_WIDTH, PLAY_AREA_WIDTH,
@ -187,7 +187,7 @@ namespace PongFE
null, null,
null, null,
null, null,
Resolution.TransformMatrix ResolutionScaler.TransformMatrix
); );
SpriteBatch.Draw( SpriteBatch.Draw(

View File

@ -1,9 +1,8 @@
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace IndependentResolutionRendering namespace MoonTools
{ {
static class Resolution static class ResolutionScaler
{ {
static private int s_virtual_width; static private int s_virtual_width;
static private int s_virtual_height; static private int s_virtual_height;