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

@ -13,10 +13,9 @@ put_samply_to_bed(Samply *sam)
free_image(sam->walka);
babble("free samply walk b!!");
free_image(sam->walkb);
babble("good night, samply!!");
SDL_free(sam);
}
babble("good night, samply!!");
SDL_free(sam);
}
Samply *
@ -34,7 +33,7 @@ wake_samply_up(SDL_Renderer *ren)
babble("stand samply up!!");
sam->idle = load_image(ren, "samply/Samply.png");
if (!sam->idle) {
fuck("samply would rather stay in bed. too bad! %s", SDL_GetError());
fuck("samply would rather stay in bed. too bad!");
put_samply_to_bed(sam);
return NULL;
}
@ -42,7 +41,7 @@ wake_samply_up(SDL_Renderer *ren)
babble("samply walk! part 1!!");
sam->walka = load_image(ren, "samply/Samply_Walk1.png");
if (!sam->walka) {
fuck("samply would rather stay in bed. too bad! %s", SDL_GetError());
fuck("samply would rather stay in bed. too bad!");
put_samply_to_bed(sam);
return NULL;
}
@ -50,7 +49,7 @@ wake_samply_up(SDL_Renderer *ren)
babble("samply walk! part 2!!");
sam->walkb = load_image(ren, "samply/Samply_Walk2.png");
if (!sam->walkb) {
fuck("samply would rather stay in bed. too bad! %s", SDL_GetError());
fuck("samply would rather stay in bed. too bad!");
put_samply_to_bed(sam);
return NULL;
}

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,