summaryrefslogtreecommitdiff
path: root/src/windows/main_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/main_windows.cpp')
-rw-r--r--src/windows/main_windows.cpp5
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();