square window size (samply imgs are square)

This commit is contained in:
cat 2025-05-26 15:11:05 +10:00
parent d65a270aab
commit 6a826d4b37
2 changed files with 6 additions and 7 deletions

View file

@ -81,7 +81,7 @@ SDL_AppInit(void **as, int argc, char **argv)
SDL_SetHint(SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT, "1");
babble("create win+render...");
if (!SDL_CreateWindowAndRenderer("slutpet", 320, 240,
if (!SDL_CreateWindowAndRenderer("slutpet", 320, 320,
SDL_WINDOW_TRANSPARENT | SDL_WINDOW_BORDERLESS
| SDL_WINDOW_NOT_FOCUSABLE
| SDL_WINDOW_ALWAYS_ON_TOP,