mirror of https://github.com/xemu-project/xemu.git
ui: Fix audio debug dialog spacing
This commit is contained in:
parent
1985b63ffa
commit
93ab116e91
|
@ -43,6 +43,8 @@ void DebugApuWindow::Draw()
|
||||||
|
|
||||||
|
|
||||||
ImGui::Columns(2, "", false);
|
ImGui::Columns(2, "", false);
|
||||||
|
ImGui::SetColumnWidth(0, 360*g_viewport_mgr.m_scale);
|
||||||
|
|
||||||
int now = SDL_GetTicks() % 1000;
|
int now = SDL_GetTicks() % 1000;
|
||||||
float t = now/1000.0f;
|
float t = now/1000.0f;
|
||||||
float freq = 1;
|
float freq = 1;
|
||||||
|
@ -56,8 +58,8 @@ void DebugApuWindow::Draw()
|
||||||
|
|
||||||
ImGui::PushFont(g_font_mgr.m_fixed_width_font);
|
ImGui::PushFont(g_font_mgr.m_fixed_width_font);
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
|
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2, 2));
|
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(2*g_viewport_mgr.m_scale, 2*g_viewport_mgr.m_scale));
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4, 4));
|
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(4*g_viewport_mgr.m_scale, 4*g_viewport_mgr.m_scale));
|
||||||
for (int i = 0; i < 256; i++)
|
for (int i = 0; i < 256; i++)
|
||||||
{
|
{
|
||||||
if (i % 16) {
|
if (i % 16) {
|
||||||
|
@ -164,8 +166,6 @@ void DebugApuWindow::Draw()
|
||||||
mcpx_apu_debug_toggle_mute(voice_mute);
|
mcpx_apu_debug_toggle_mute(voice_mute);
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::SameLine();
|
|
||||||
ImGui::SetColumnWidth(0, ImGui::GetCursorPosX());
|
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
|
||||||
ImGui::PushFont(g_font_mgr.m_fixed_width_font);
|
ImGui::PushFont(g_font_mgr.m_fixed_width_font);
|
||||||
|
|
Loading…
Reference in New Issue