win32: initialize clock in oc_init() #67

Merged
MartinFouilleul merged 2 commits from fix_win32_time_init into main 2023-08-25 13:39:05 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit ce3f3810a7 - Show all commits

View File

@ -151,6 +151,8 @@ void oc_init()
{ {
memset(&oc_appData, 0, sizeof(oc_appData)); memset(&oc_appData, 0, sizeof(oc_appData));
oc_clock_init();
oc_init_common(); oc_init_common();
oc_init_keys(); oc_init_keys();
@ -1252,7 +1254,7 @@ void oc_surface_init_for_window(oc_surface_data* surface, oc_window_data* window
oc_log_error("couldn't enable blur behind\n"); oc_log_error("couldn't enable blur behind\n");
} }
//NOTE(reuben): Creating the child window takes focus away from the main window, but we want to keep //NOTE(reuben): Creating the child window takes focus away from the main window, but we want to keep
//the focus on the main window //the focus on the main window
SetFocus(window->win32.hWnd); SetFocus(window->win32.hWnd);