win32: initialize clock in oc_init()

This commit is contained in:
Reuben Dunnington 2023-08-24 15:34:31 -07:00
parent d3e27df818
commit ce3f3810a7
Signed by: rdunnington
GPG Key ID: 4EC5290E704FD482
1 changed files with 3 additions and 1 deletions

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);