meson: Update imgui,implot

This commit is contained in:
Matt Borgerson
2025-03-08 03:17:17 -07:00
committed by mborgerson
parent 1d662cb49e
commit 355228913c
4 changed files with 8 additions and 5 deletions

View File

@ -130,12 +130,15 @@ void MainMenuInputView::Draw()
float x = b_x + i * b_x_stride;
ImGui::PushStyleColor(ImGuiCol_Button,
is_selected ? color_active : color_inactive);
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,
g_viewport_mgr.Scale(ImVec2(port_padding, port_padding)));
bool activated = ImGui::ImageButton(
"port_image_button",
id,
ImVec2(b_w * g_viewport_mgr.m_scale, b_h * g_viewport_mgr.m_scale),
ImVec2(x / t_w, (b_y + b_h) / t_h),
ImVec2((x + b_w) / t_w, b_y / t_h),
port_padding * g_viewport_mgr.m_scale);
ImVec2((x + b_w) / t_w, b_y / t_h));
ImGui::PopStyleVar();
ImGui::PopStyleColor();
if (activated) {