From 97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03 Mon Sep 17 00:00:00 2001 From: Emil Williams Date: Sun, 15 Feb 2026 02:44:29 +0000 Subject: config_t 2, bomb minus bugs --- source/raylib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/raylib.c') diff --git a/source/raylib.c b/source/raylib.c index d96aa4a..33ac72c 100644 --- a/source/raylib.c +++ b/source/raylib.c @@ -41,7 +41,11 @@ void RaylibInitialize(int horizontal, int vertical, char * window_name, Font def 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(); - SetWindowPosition(0, 0); + int monitor = GetCurrentMonitor(); + int width = GetMonitorWidth(monitor), height = GetMonitorHeight(monitor); + SetWindowPosition( + width/2-horizontal/2, + height/2-vertical/2); GuiLoadStyleDarkSimple(); GuiSetFont(default_font); } -- cgit v1.2.3