aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-16 22:26:20 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-16 22:26:20 +0100
commit7a51134e10d647e54be16c0f4df4ee748eab63f3 (patch)
treece8abe026a9bdc0d3e7956b4aee7ae3eeabe27b5
parentc7adf21a4c52bd78428a93cdbaf25c52b03783ba (diff)
Make the screen resizable
-rw-r--r--src/ahoy/gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ahoy/gui.c b/src/ahoy/gui.c
index 072d5b9..083d4e2 100644
--- a/src/ahoy/gui.c
+++ b/src/ahoy/gui.c
@@ -30,9 +30,9 @@ wininit(void)
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER) != 0)
diesx("failed to initialize SDL");
- win = SDL_CreateWindow("Ahoy! CHIP-8 Emulator", SDL_WINDOWPOS_CENTERED,
- SDL_WINDOWPOS_CENTERED, SCR_WDTH * SCR_SCALE,
- SCR_HIGH * SCR_SCALE, 0);
+ win = SDL_CreateWindow("Ahoy! CHIP-8 Emulator", SDL_WINDOWPOS_UNDEFINED,
+ SDL_WINDOWPOS_UNDEFINED, SCR_WDTH * SCR_SCALE,
+ SCR_HIGH * SCR_SCALE, SDL_WINDOW_RESIZABLE);
if (!win)
diesx("failed to create window");