From 7a51134e10d647e54be16c0f4df4ee748eab63f3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Feb 2024 22:26:20 +0100 Subject: Make the screen resizable --- src/ahoy/gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3