summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.cpp4
-rw-r--r--src/config.h4
-rw-r--r--src/main.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 51d45a8..38f7d8c 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -10,8 +10,8 @@ utf8_int8_t save_path[MAX_INPUT_LENGTH];
utf8_int8_t path_buffer[MAX_INPUT_LENGTH];
utf8_int8_t filter_buffer[MAX_INPUT_LENGTH];
utf8_int8_t query_buffer[MAX_INPUT_LENGTH];
-uint16_t ts_thread_count = 4;
-uint32_t max_file_size = 100; // in MBs
+int32_t ts_thread_count = 4;
+int32_t max_file_size = 100; // in MBs
bool respect_capitalization = false;
static void _ts_config_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const utf8_int8_t* line)
diff --git a/src/config.h b/src/config.h
index 73d70ff..20fdba0 100644
--- a/src/config.h
+++ b/src/config.h
@@ -28,8 +28,8 @@ extern utf8_int8_t save_path[MAX_INPUT_LENGTH];
extern utf8_int8_t path_buffer[MAX_INPUT_LENGTH];
extern utf8_int8_t filter_buffer[MAX_INPUT_LENGTH];
extern utf8_int8_t query_buffer[MAX_INPUT_LENGTH];
-extern uint16_t ts_thread_count;
-extern uint32_t max_file_size; // in MBs
+extern int32_t ts_thread_count;
+extern int32_t max_file_size; // in MBs
extern bool respect_capitalization;
void ts_load_config(); \ No newline at end of file
diff --git a/src/main.cpp b/src/main.cpp
index a6e8dba..04cdfaf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,10 +56,10 @@ static void _ts_create_popups(int window_w, int window_h) {
// Settings window
if (ImGui::BeginPopupModal("Text-Search settings", &open_settings_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) {
ImGui::SetWindowSize({300, 0});
- ImGui::DragInt("Threads", (int*)&ts_thread_count, 0.1f, 1, 8);
+ ImGui::DragInt("Threads", &ts_thread_count, 0.1f, 1, 8);
ImGui::SetItemTooltip("Number of threads used to search for text matches");
- ImGui::DragInt("File Size", (int*)&max_file_size, 50.0f, 1, 10000, "%dMB");
+ ImGui::DragInt("File Size", &max_file_size, 50.0f, 1, 10000, "%dMB");
ImGui::SetItemTooltip("Files larger than this will not be searched");
ImGui::Dummy({0, 70});