jackun 4 years ago
parent 012ab820cb
commit b2d072e7ab
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -1236,6 +1236,16 @@ struct render_mode
float outline = 0.18f;
} render_mode [] { {0}, {1} };
static float calc_alignment(ImFont* small_font)
{
float l = ImGui::CalcTextSize("A").x;
ImGui::PushFont(small_font);
float s = ImGui::CalcTextSize("A").x;
ImGui::PopFont();
std::cerr << "l " << l << " s " << s << "\n";
return l * 4;// - s * 3;
}
void render_imgui(swapchain_stats& data, struct overlay_params& params, ImVec2& window_size, bool is_vulkan)
{
ImGui::GetIO().FontGlobalScale = params.font_scale;

Loading…
Cancel
Save