diff --git a/samply.c b/samply.c index 16ce3b1..a82bd31 100644 --- a/samply.c +++ b/samply.c @@ -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; } diff --git a/slutpet.c b/slutpet.c index 69ae2b2..17b6b7d 100644 --- a/slutpet.c +++ b/slutpet.c @@ -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,