mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 02:52:30 +02:00
Renderer: Scale all imgui fonts by the backbuffer scale
This commit is contained in:
parent
c9c0b85056
commit
f1e7fb505b
@ -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…
Reference in New Issue
Block a user