mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
Fix Invert box position
This commit is contained in:
parent
577c281a17
commit
36eec8f170
1 changed files with 3 additions and 3 deletions
|
@ -1358,15 +1358,15 @@ void FurnaceGUI::drawMixer() {
|
|||
signed char vol=e->song.systemVol[i]&127;
|
||||
ImGui::PushID(id);
|
||||
ImGui::Text("%d. %s",i+1,getSystemName(e->song.system[i]));
|
||||
ImGui::SameLine(ImGui::GetWindowWidth()-(75.0f*dpiScale));
|
||||
ImGui::SameLine(ImGui::GetWindowWidth()-(82.0f*dpiScale));
|
||||
if (ImGui::Checkbox("Invert",&doInvert)) {
|
||||
e->song.systemVol[i]^=128;
|
||||
}
|
||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
||||
if (ImGui::SliderScalar("Volume",ImGuiDataType_S8,&vol,&_ZERO,&_ONE_HUNDRED_TWENTY_SEVEN)) {
|
||||
e->song.systemVol[i]=(e->song.systemVol[i]&128)|vol;
|
||||
}
|
||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x-(50.0f*dpiScale));
|
||||
ImGui::SliderScalar("Panning",ImGuiDataType_S8,&e->song.systemPan[i],&_MINUS_ONE_HUNDRED_TWENTY_SEVEN,&_ONE_HUNDRED_TWENTY_SEVEN);
|
||||
|
||||
ImGui::PopID();
|
||||
|
|
Loading…
Reference in a new issue