Skip to content

Commit

Permalink
Small fix for the menu looking like shit at high resolutions.
Browse files Browse the repository at this point in the history
It will probably still look kinda shitty at anything above 1920x1080.
We can fix that later.
  • Loading branch information
keelin committed Jul 18, 2013
1 parent 889bbb4 commit e42730d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ClientServices/State/States/ConnectMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ConnectMenu : State, IState
public ConnectMenu(IDictionary<Type, object> managers)
: base(managers)
{
_background = ResourceManager.GetSprite("mainbg");
_background = ResourceManager.GetSprite("mainbg_filler");
_background.Smoothing = Smoothing.Smooth;

_connectButton = new Label("Connect", "CALIBRI", ResourceManager) { DrawBorder = true};
Expand Down Expand Up @@ -120,7 +120,7 @@ public void Startup()
BounceRotate = false,
BounceRotateAngle = 10,
ParallaxScale = 0.001f,
SpriteLocation = new Vector2D(-50, -50),
SpriteLocation = new Vector2D(0, 0),
Velocity = new Vector2D(0, 0),
RotationSpeed = 0.0f
});
Expand Down Expand Up @@ -271,6 +271,7 @@ public void Update(FrameEventArgs e)

public void GorgonRender(FrameEventArgs e)
{
_background.Draw(new Rectangle(0,0,Gorgon.Screen.Width, Gorgon.Screen.Height));
}

public void FormResize()
Expand Down
2 changes: 1 addition & 1 deletion ClientServices/UserInterface/Components/FloatingDeco.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public override void Update(float frameTime)

if (MouseParallaxVertical)
{
ParY = Math.Abs(_uiMgr.MousePos.Y - (Gorgon.Screen.Height));
ParY = Math.Abs(_uiMgr.MousePos.Y - (Gorgon.Screen.Height ));
ParY *= ParallaxScale;
}

Expand Down

0 comments on commit e42730d

Please sign in to comment.