rename resolution scaler
parent
7f11936e5e
commit
089f210c88
|
@ -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(
|
||||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue