diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-17 15:04:35 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-17 15:04:35 +0100 |
| commit | 95e06b2f6d87b597a52029dbfa9896f4bd8ca74b (patch) | |
| tree | 250078f1044844a8cfe64592a9181fa0587317ae /src/windows/main_windows.cpp | |
| parent | 7105b39ca10394723e888161d586461e9e2b1984 (diff) | |
logging
Diffstat (limited to 'src/windows/main_windows.cpp')
| -rw-r--r-- | src/windows/main_windows.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/windows/main_windows.cpp b/src/windows/main_windows.cpp index becb1c1..c68f326 100644 --- a/src/windows/main_windows.cpp +++ b/src/windows/main_windows.cpp @@ -12,6 +12,7 @@ #include "image.h" #include "config.h" #include "fonts.h" +#include "logging.h" #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif @@ -118,10 +119,12 @@ ts_font_range _ts_get_font_range_to_load() { int main(int, char**) { + if (OleInitialize(NULL) != S_OK) { return -1; } + QueryPerformanceFrequency(&Frequency); ts_init(); // Create application window @@ -161,8 +164,6 @@ int main(int, char**) ImGui_ImplWin32_InitForOpenGL(hwnd); ImGui_ImplOpenGL3_Init(); - QueryPerformanceFrequency(&Frequency); - ts_load_fonts(18.0f, _ts_get_font_range_to_load()); ts_load_images(); ts_load_config(); |
