mirror of
https://github.com/mborgerson/xemu.git
synced 2026-02-04 13:15:45 +00:00
meson: Update imgui,implot
This commit is contained in:
committed by
mborgerson
parent
1d662cb49e
commit
355228913c
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user