Freesync and hidpi.

This commit is contained in:
2026-03-31 19:01:12 -07:00
parent 957dc29506
commit de057d852c

View File

@@ -339,6 +339,7 @@ S32 main(int argc, char *argv[])
state.window_w = 1400;
state.window_h = 300;
SetConfigFlags(FLAG_VSYNC_HINT | FLAG_MSAA_4X_HINT | FLAG_WINDOW_HIGHDPI);
InitWindow(state.window_w, state.window_h, "Time Tracker");
SetWindowState(FLAG_MSAA_4X_HINT|FLAG_WINDOW_RESIZABLE);
@@ -357,8 +358,11 @@ S32 main(int argc, char *argv[])
state.font_size = 30;
double last_input_s = now();
SetTargetFPS(30);
while(!WindowShouldClose()) {
poll_input();
@@ -485,6 +489,8 @@ S32 main(int argc, char *argv[])
}
}
DrawRectangle(state.mouse_pos.x, state.mouse_pos.y, 10, 10, WHITE);
DrawFPS(20, 20);
EndDrawing();
@@ -499,6 +505,7 @@ S32 main(int argc, char *argv[])
last_save = now_s;
}
#if 0
if(is_dirty()) {
clear_dirty();
SetTargetFPS(120); // FPS cap
@@ -508,6 +515,7 @@ S32 main(int argc, char *argv[])
last_input_s = now_s;
}
}
#endif
}
save_activities(f, file_path, current_activity, activities);