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?
|
// Don't create an ini file. TODO: Do we want this in the future?
|
||||||
ImGui::GetIO().IniFilename = nullptr;
|
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 = {};
|
PortableVertexDeclaration vdecl = {};
|
||||||
vdecl.position = {VAR_FLOAT, 2, offsetof(ImDrawVert, pos), true, false};
|
vdecl.position = {VAR_FLOAT, 2, offsetof(ImDrawVert, pos), true, false};
|
||||||
|
|
Loading…
Reference in New Issue