THIS CRASHES

This commit is contained in:
tildearrow 2023-08-21 17:24:41 -05:00
parent 18dc353392
commit 617ee5e324
2 changed files with 62 additions and 2 deletions

View file

@ -19,6 +19,7 @@
#define _USE_MATH_DEFINES
#include "gui.h"
#include "../ta-log.h"
#include "imgui_internal.h"
#include "../engine/macroInt.h"
#include "IconsFontAwesome4.h"
@ -1302,6 +1303,10 @@ void FurnaceGUI::kvsConfig(DivInstrument* ins) {
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
fmPreviewOn=!fmPreviewOn;
}
if (ImGui::IsItemHovered() && CHECK_LONG_HOLD) {
NOTIFY_LONG_HOLD;
fmPreviewOn=!fmPreviewOn;
}
if (!fmPreviewOn) {
int opCount=4;
if (ins->type==DIV_INS_OPLL) opCount=2;