diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 15:50:32 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-03 15:50:32 +0100 |
| commit | ea14b4942c5f260b8a647bec52b85d376f12066a (patch) | |
| tree | 30bafd021d0551f93c3d21362486ef955639f646 /src/main_windows.cpp | |
| parent | 1594c96a327ae418b193d19d8d6c80b89cc74430 (diff) | |
separate code
Diffstat (limited to 'src/main_windows.cpp')
| -rw-r--r-- | src/main_windows.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_windows.cpp b/src/main_windows.cpp index 42d989b..e2fc0eb 100644 --- a/src/main_windows.cpp +++ b/src/main_windows.cpp @@ -19,6 +19,7 @@ #include "mutex.h" #include "array.h" #include "memory_bucket.h" +#include "image.h" #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif @@ -30,6 +31,7 @@ void ts_create_gui(int window_w, int window_h); void ts_load_images(); +void ts_init(); // Data stored per platform window struct WGL_WindowData { HDC hDC; }; @@ -89,6 +91,7 @@ int main(int, char**) ImGui_ImplWin32_InitForOpenGL(hwnd); ImGui_ImplOpenGL3_Init(); + ts_init(); ts_load_images(); // Load Fonts @@ -332,6 +335,8 @@ void platform_list_files_block(search_result* result, wchar_t* start_dir) do { + if (result->cancel_search) return; + //if (*is_cancelled) break; const wchar_t *name = (const wchar_t *)file_info.cFileName; |
