ref: 2feac9be1d1bebe1a05a47c0adf0254228ca558d
parent: c1ad81772e25026e020cbf74cf61ba129b7f48f4
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Jan 5 21:46:14 EST 2024
sdl: instead of getting window size use renderer's output size
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -23,7 +23,7 @@
/* lower than 320x240 doesn't really make sense,
* but at least this prevents a crash, beyond that
* it's your funeral */
- SDL_GetWindowSize(win, &vid.width, &vid.height);
+ SDL_GetRendererOutputSize(rend, &vid.width, &vid.height);
vid.width /= v_scale.value;
vid.height /= v_scale.value;
vid.width = clamp(vid.width, 320, MAXWIDTH);