diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-11-19 18:36:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-19 18:36:32 +0100 |
| commit | 01794126ade973a125161ca0ea9904197bccedc3 (patch) | |
| tree | 0b805e289e631a0a9c507f6e8f75ee0c35c0f7e3 /Source/Core/VideoBackends/D3D/Render.cpp | |
| parent | 175db0d817835730d10fa07e594deb3dc842fa28 (diff) | |
| parent | d6f10fdc1527a7591297c4fe9e6df3071a43f87e (diff) | |
Merge pull request #6191 from lioncash/file-static
D3DUtil: Make file-scope variables internally linked where applicable
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 3286bd7f4b..4fc2b1f084 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -243,9 +243,9 @@ Renderer::~Renderer() void Renderer::RenderText(const std::string& text, int left, int top, u32 color) { - D3D::font.DrawTextScaled((float)(left + 1), (float)(top + 1), 20.f, 0.0f, color & 0xFF000000, - text); - D3D::font.DrawTextScaled((float)left, (float)top, 20.f, 0.0f, color, text); + D3D::DrawTextScaled(static_cast<float>(left + 1), static_cast<float>(top + 1), 20.f, 0.0f, + color & 0xFF000000, text); + D3D::DrawTextScaled(static_cast<float>(left), static_cast<float>(top), 20.f, 0.0f, color, text); } TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc) |
