fix xyosc y channel selector

This commit is contained in:
Eknous-P 2025-05-25 23:06:27 +04:00 committed by tildearrow
parent 05a59689c1
commit b5d2a01557

View file

@ -18,10 +18,6 @@
*/ */
#include "gui.h" #include "gui.h"
#include "imgui_internal.h"
#include <imgui.h>
#include "../ta-log.h"
#include "../engine/filter.h"
void FurnaceGUI::drawXYOsc() { void FurnaceGUI::drawXYOsc() {
if (nextWindow==GUI_WINDOW_XY_OSC) { 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 (ImGui::Begin("Oscilloscope (X-Y)",&xyOscOpen,globalWinFlags,_("Oscilloscope (X-Y)"))) {
if (xyOscOptions) { if (xyOscOptions) {
int xyOscXChannelP1 = xyOscXChannel+1; int xyOscXChannelP1=xyOscXChannel+1;
int xyOscYChannelP1 = xyOscYChannel+1; int xyOscYChannelP1=xyOscYChannel+1;
ImGui::Text(_("X Channel")); ImGui::Text(_("X Channel"));
ImGui::SameLine(); ImGui::SameLine();
@ -52,7 +48,7 @@ void FurnaceGUI::drawXYOsc() {
ImGui::Text(_("Y Channel")); ImGui::Text(_("Y Channel"));
ImGui::SameLine(); ImGui::SameLine();
if (ImGui::DragInt("##YChannel",&xyOscYChannelP1,1.0f,1,DIV_MAX_OUTPUTS)) { 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 } rightClickable
ImGui::SameLine(); ImGui::SameLine();
ImGui::Checkbox(_("Invert##Y"),&xyOscYInvert); ImGui::Checkbox(_("Invert##Y"),&xyOscYInvert);