From b8d8eaa8b2c46f79e8a580a402ec7c472075d073 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Mar 2024 16:13:02 +0100 Subject: enforce naming convention --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 883b8ee..4046004 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ utf8_int8_t query_buffer[SEARCH_BUFFER_SIZE]; bool open_settings_window = false; bool open_about_window = false; -int thread_count = 4; +int ts_thread_count = 4; int current_locale_index = 0; int locales_count = 2; char* locales[] = { @@ -36,7 +36,7 @@ static void _ts_create_popups() { // Settings window if (ImGui::BeginPopupModal("Text-Search settings", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({300, 0}); - ImGui::DragInt("Threads", &thread_count, 1.0f, 1, 64); + ImGui::DragInt("Threads", &ts_thread_count, 1.0f, 1, 64); ImGui::Combo("Language", ¤t_locale_index, locales, locales_count); ImGui::Dummy({0, 70}); @@ -203,10 +203,10 @@ void ts_create_gui(int window_w, int window_h) { ImGui::TableHeadersRow(); int itemcount = current_search_result == 0 ? 0 : current_search_result->matches.length; - found_file* prev_file = nullptr; + ts_found_file* prev_file = nullptr; for (int item = 0; item < itemcount; item++) { - file_match *file = (file_match *)array_at(¤t_search_result->matches, item); + ts_file_match *file = (ts_file_match *)ts_array_at(¤t_search_result->matches, item); if (prev_file != file->file) { prev_file = file->file; -- cgit v1.2.3-70-g09d2