fix xyosc y channel selector
This commit is contained in:
parent
05a59689c1
commit
b5d2a01557
|
@ -18,10 +18,6 @@
|
|||
*/
|
||||
|
||||
#include "gui.h"
|
||||
#include "imgui_internal.h"
|
||||
#include <imgui.h>
|
||||
#include "../ta-log.h"
|
||||
#include "../engine/filter.h"
|
||||
|
||||
void FurnaceGUI::drawXYOsc() {
|
||||
if (nextWindow==GUI_WINDOW_XY_OSC) {
|
||||
|
@ -39,8 +35,8 @@ void FurnaceGUI::drawXYOsc() {
|
|||
}
|
||||
if (ImGui::Begin("Oscilloscope (X-Y)",&xyOscOpen,globalWinFlags,_("Oscilloscope (X-Y)"))) {
|
||||
if (xyOscOptions) {
|
||||
int xyOscXChannelP1 = xyOscXChannel+1;
|
||||
int xyOscYChannelP1 = xyOscYChannel+1;
|
||||
int xyOscXChannelP1=xyOscXChannel+1;
|
||||
int xyOscYChannelP1=xyOscYChannel+1;
|
||||
|
||||
ImGui::Text(_("X Channel"));
|
||||
ImGui::SameLine();
|
||||
|
@ -52,7 +48,7 @@ void FurnaceGUI::drawXYOsc() {
|
|||
ImGui::Text(_("Y Channel"));
|
||||
ImGui::SameLine();
|
||||
if (ImGui::DragInt("##YChannel",&xyOscYChannelP1,1.0f,1,DIV_MAX_OUTPUTS)) {
|
||||
xyOscXChannel=MIN(MAX(xyOscYChannelP1,1),DIV_MAX_OUTPUTS)-1;
|
||||
xyOscYChannel=MIN(MAX(xyOscYChannelP1,1),DIV_MAX_OUTPUTS)-1;
|
||||
} rightClickable
|
||||
ImGui::SameLine();
|
||||
ImGui::Checkbox(_("Invert##Y"),&xyOscYInvert);
|
||||
|
|
Loading…
Reference in a new issue