From 233adba0aeb5a3155d28aff78316065761b67cfd Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 30 Apr 2024 15:03:46 -0400 Subject: [PATCH] list box fix --- CMakeLists.txt | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc067b5..987e479 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(graphs VERSION 0.0.19) +project(graphs VERSION 0.0.20) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/src/main.cpp b/src/main.cpp index 4a01f59..a8a697f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -607,7 +607,7 @@ void update(const blt::gfx::window_data& data) auto current_sim = main_graph.getSimulatorName(); const char* items[] = {"Eades", "Fruchterman & Reingold"}; static int item_current = 0; - ImGui::ListBox("", &item_current, items, IM_ARRAYSIZE(items), 4); + ImGui::ListBox("##SillyBox", &item_current, items, 2, 2); if (strcmp(items[item_current], current_sim.c_str()) != 0) {