diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 16:13:02 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 16:13:02 +0100 |
| commit | b8d8eaa8b2c46f79e8a580a402ec7c472075d073 (patch) | |
| tree | 470b46ba7693c50bd0368c2a69fbe057bb8dac66 /src/main.cpp | |
| parent | ea14b4942c5f260b8a647bec52b85d376f12066a (diff) | |
enforce naming convention
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
