From 16adefc98106a7f401a00864122f65f64305ecce Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 30 Apr 2026 19:07:38 +0200 Subject: Refactor crosshair --- game.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'game.c') diff --git a/game.c b/game.c index 19a1875..dc54ce5 100644 --- a/game.c +++ b/game.c @@ -324,10 +324,7 @@ void DrawGame(void) { EndMode3D(); - int screenWidth = GetScreenWidth(); - int screenHeight = GetScreenHeight(); - DrawLine(screenWidth / 2 - 10, screenHeight / 2, screenWidth / 2 + 10, screenHeight / 2, GREEN); - DrawLine(screenWidth / 2, screenHeight / 2 - 10, screenWidth / 2, screenHeight / 2 + 10, GREEN); + DrawCrosshair(); DrawTextEx(game.font_ui, TextFormat("%i FPS", GetFPS()), (Vector2){ 10, 10 }, 20, 2, GREEN); DrawTextEx(game.font_ui, TextFormat("VSync: %s", game.vsync ? "ON" : "OFF"), (Vector2){ 10, 35 }, 20, 2, GREEN); -- cgit v1.2.3