From 4593e33064595bd7eea89c8353fc624ca3eaa4f0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 19 Mar 2022 22:02:21 -0500 Subject: [PATCH] GUI: fix X1-010 flags --- src/gui/gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index dde870bb..60079359 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -5833,16 +5833,16 @@ bool FurnaceGUI::loop() { case DIV_SYSTEM_X1_010: { ImGui::Text("Clock rate:"); if (ImGui::RadioButton("16MHz (Seta 1)",(flags&15)==0)) { - e->setSysFlags(i,(flags&(~16))|0,restart); + e->setSysFlags(i,(flags&(~15))|0,restart); updateWindowTitle(); } if (ImGui::RadioButton("16.67MHz (Seta 2)",(flags&15)==1)) { - e->setSysFlags(i,(flags&(~16))|1,restart); + e->setSysFlags(i,(flags&(~15))|1,restart); updateWindowTitle(); } bool x1_010Stereo=flags&16; if (ImGui::Checkbox("Stereo",&x1_010Stereo)) { - e->setSysFlags(i,(flags&(~15))|(x1_010Stereo<<4),restart); + e->setSysFlags(i,(flags&(~16))|(x1_010Stereo<<4),restart); updateWindowTitle(); } break;