From 0bb3381eefcb645f1abd516e3a6827bad1767406 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Sun, 15 Feb 2026 04:06:55 +0000 Subject: timer pre --- source/raylib.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source/raylib.c') diff --git a/source/raylib.c b/source/raylib.c index 33ac72c..32cfafb 100644 --- a/source/raylib.c +++ b/source/raylib.c @@ -11,7 +11,7 @@ #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #define RAYGUI_IMPLEMENTATION -#include +#include "all.h" #include #pragma GCC diagnostic pop @@ -32,12 +32,14 @@ Font DefaultFont(char * choice) { return font; } -void RaylibInitialize(int horizontal, int vertical, char * window_name, Font default_font) { +void RaylibInitialize(game_t * game) { #ifdef NDEBUG SetTraceLogLevel(LOG_NONE); #endif + i16 horizontal = game->config.resolution_x; + i16 vertical = game->config.resolution_y; /* SetConfigFlags(FLAG_WINDOW_RESIZABLE); */ - InitWindow(horizontal, vertical, window_name); + InitWindow(horizontal, vertical, game->config.window_name); SetWindowState(FLAG_WINDOW_HIDDEN); /* we should spawn this in the center of the screen and have our window scale to the limit of the screen */ InitAudioDevice(); @@ -47,7 +49,8 @@ void RaylibInitialize(int horizontal, int vertical, char * window_name, Font def width/2-horizontal/2, height/2-vertical/2); GuiLoadStyleDarkSimple(); - GuiSetFont(default_font); + game->font = DefaultFont(game->config.font); + GuiSetFont(game->font); } void RaylibDeinitialize(void) { -- cgit v1.2.3