From 5c1e05d19f0568e57937bf23ea5e367ee33f0b98 Mon Sep 17 00:00:00 2001 From: Souryo Date: Thu, 26 Jun 2014 18:39:37 -0400 Subject: [PATCH] Fixed "Paused" position --- GUI/Renderer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GUI/Renderer.cpp b/GUI/Renderer.cpp index 5b59a9e0..17a2cb2c 100644 --- a/GUI/Renderer.cpp +++ b/GUI/Renderer.cpp @@ -316,9 +316,8 @@ namespace NES _spriteBatch->Draw(shaderResourceView, destRect); // , position, &sourceRect, Colors::White, 0.0f, position, 4.0f); shaderResourceView->Release(); - _font->DrawString(_spriteBatch.get(), L"PAUSED", XMFLOAT2(256 * 2 - 142, 240 * 2 - 37), Colors::Black, 0.0f, XMFLOAT2(0, 0), 2.0f); - _font->DrawString(_spriteBatch.get(), L"PAUSED", XMFLOAT2(256 * 2 - 145, 240 * 2 - 40), Colors::AntiqueWhite, 0.0f, XMFLOAT2(0, 0), 2.0f); - + _font->DrawString(_spriteBatch.get(), L"PAUSED", XMFLOAT2(_hdScreenWidth / 2 - 142, _hdScreenHeight / 2 - 77), Colors::Black, 0.0f, XMFLOAT2(0, 0), 2.0f); + _font->DrawString(_spriteBatch.get(), L"PAUSED", XMFLOAT2(_hdScreenWidth / 2 - 145, _hdScreenHeight / 2 - 80), Colors::AntiqueWhite, 0.0f, XMFLOAT2(0, 0), 2.0f); } //--------------------------------------------------------------------------------------