This commit is contained in:
Krzosa Karol
2025-01-13 10:31:23 +01:00
parent dd796b12f4
commit b4d3f20cad
8 changed files with 410 additions and 333 deletions

View File

@@ -7,7 +7,7 @@
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "winmm.lib")
fn void app_init(void);
fn void app_init(f32 dpr);
fn b32 app_update(app_frame_t *frame);
gb b32 w32_good_scheduling;
@@ -355,7 +355,7 @@ int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int n
refresh_rate = (f64)devmodew.dmDisplayFrequency;
}
app_init();
app_init(w32_get_dpr(w32_window_handle));
f64 time_frame_start = w32_seconds_now();
f64 time_delta = 1.0 / refresh_rate;