mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
Renderer: Scale all imgui fonts by the backbuffer scale
This commit is contained in:
parent
c9c0b85056
commit
f1e7fb505b
1 changed files with 4 additions and 0 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Reference in a new issue