diff options
| author | Lioncash <mathew1800@gmail.com> | 2017-11-12 12:30:12 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2017-11-19 12:12:39 -0500 |
| commit | 01a92af014ee7815734383573895c34ee89eac92 (patch) | |
| tree | 3fa9291e6e79cf903a65ad89bbf199889c3efdf7 /Source/Core/VideoBackends/D3D/Render.cpp | |
| parent | 175db0d817835730d10fa07e594deb3dc842fa28 (diff) | |
D3DUtil: Make file-scope variables internally linked where applicable
All file scope variables are able to be made internally linked.
CD3DFont is essentially used as an extension to the utility interface, so
this is able to be made internal as well, removing a global from
external view.
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) |
