mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
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.
This commit is contained in:
parent
175db0d817
commit
01a92af014
3 changed files with 56 additions and 48 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue