diff options
| author | Emil Williams | 2026-02-15 02:44:29 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-02-15 02:44:29 +0000 |
| commit | 97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03 (patch) | |
| tree | a012960ad45eba54f512da2337440a448f72a2f0 /source/raylib.c | |
| parent | dc655ac2079e0eea55c56b6712bf6a2167b57845 (diff) | |
| download | Monobomberman-97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03.tar.xz Monobomberman-97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03.tar.zst | |
config_t 2, bomb minus bugs
Diffstat (limited to 'source/raylib.c')
| -rw-r--r-- | source/raylib.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); } |
