mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
DX11:
Make font rendering a lot prettier. Fix constant buffers in EmuGfxState::ApplyState() to really have a size which is a multiple of 16 instead of 65536. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5755 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
6a88241e64
commit
a450fd45d8
4 changed files with 43 additions and 39 deletions
|
@ -469,7 +469,7 @@ void Renderer::DrawDebugText()
|
|||
|
||||
void Renderer::RenderText(const char* text, int left, int top, u32 color)
|
||||
{
|
||||
D3D::font.DrawTextScaled((float)left, (float)top, 15, 0.0f, color, text, false);
|
||||
D3D::font.DrawTextScaled((float)left, (float)top, 20.f, 0.0f, color, text, false);
|
||||
}
|
||||
|
||||
TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc)
|
||||
|
@ -930,7 +930,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
|||
{
|
||||
char fps[20];
|
||||
StringCchPrintfA(fps, 20, "FPS: %d\n", s_fps);
|
||||
D3D::font.DrawTextScaled(0,30,30,0.0f,0xFF00FFFF,fps,false);
|
||||
D3D::font.DrawTextScaled(0,30,20,0.0f,0xFF00FFFF,fps,false);
|
||||
}
|
||||
Renderer::DrawDebugText();
|
||||
|
||||
|
@ -938,13 +938,13 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
|||
{
|
||||
char buf[32768];
|
||||
Statistics::ToString(buf);
|
||||
D3D::font.DrawTextScaled(0,30,30,0.0f,0xFF00FFFF,buf,false);
|
||||
D3D::font.DrawTextScaled(0,30,20,0.0f,0xFF00FFFF,buf,false);
|
||||
}
|
||||
else if (g_ActiveConfig.bOverlayProjStats)
|
||||
{
|
||||
char buf[32768];
|
||||
Statistics::ToStringProj(buf);
|
||||
D3D::font.DrawTextScaled(0,30,30,0.0f,0xFF00FFFF,buf,false);
|
||||
D3D::font.DrawTextScaled(0,30,20,0.0f,0xFF00FFFF,buf,false);
|
||||
}
|
||||
|
||||
OSD::DrawMessages();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue