From 089f210c88c9da98275c7041fe4c2ffc0495c69d Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Fri, 17 Jul 2020 20:16:19 -0700 Subject: [PATCH] rename resolution scaler --- PongFE/PongFEGame.cs | 6 +++--- PongFE/Utility/{Resolution.cs => ResolutionScaler.cs} | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) rename PongFE/Utility/{Resolution.cs => ResolutionScaler.cs} (94%) diff --git a/PongFE/PongFEGame.cs b/PongFE/PongFEGame.cs index eb7012f..ded3262 100644 --- a/PongFE/PongFEGame.cs +++ b/PongFE/PongFEGame.cs @@ -1,6 +1,6 @@ using System.IO; using Encompass; -using IndependentResolutionRendering; +using MoonTools; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using PongFE.Components; @@ -44,7 +44,7 @@ namespace PongFE protected override void LoadContent() { - Resolution.Init( + ResolutionScaler.Init( GraphicsDevice.PresentationParameters.BackBufferWidth, GraphicsDevice.PresentationParameters.BackBufferHeight, PLAY_AREA_WIDTH, @@ -187,7 +187,7 @@ namespace PongFE null, null, null, - Resolution.TransformMatrix + ResolutionScaler.TransformMatrix ); SpriteBatch.Draw( diff --git a/PongFE/Utility/Resolution.cs b/PongFE/Utility/ResolutionScaler.cs similarity index 94% rename from PongFE/Utility/Resolution.cs rename to PongFE/Utility/ResolutionScaler.cs index 514b105..bf0ac24 100644 --- a/PongFE/Utility/Resolution.cs +++ b/PongFE/Utility/ResolutionScaler.cs @@ -1,9 +1,8 @@ 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_height;