Skip to content
Permalink
Browse files

Renderer: Scale all imgui fonts by the backbuffer scale

  • Loading branch information...
stenzek committed Jan 18, 2019
1 parent c9c0b85 commit f1e7fb505bc52fa3d6ed1a13e8c43d44c13cb943
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/Core/VideoCommon/RenderBase.cpp
@@ -661,6 +661,10 @@ bool Renderer::InitializeImGui()

// Don't create an ini file. TODO: Do we want this in the future?
ImGui::GetIO().IniFilename = nullptr;
ImGui::GetIO().DisplayFramebufferScale.x = m_backbuffer_scale;
ImGui::GetIO().DisplayFramebufferScale.y = m_backbuffer_scale;
ImGui::GetIO().FontGlobalScale = m_backbuffer_scale;
ImGui::GetStyle().ScaleAllSizes(m_backbuffer_scale);

PortableVertexDeclaration vdecl = {};
vdecl.position = {VAR_FLOAT, 2, offsetof(ImDrawVert, pos), true, false};

0 comments on commit f1e7fb5

Please sign in to comment.
You can’t perform that action at this time.