square window size (samply imgs are square)
This commit is contained in:
parent
d65a270aab
commit
6a826d4b37
2 changed files with 6 additions and 7 deletions
11
samply.c
11
samply.c
|
@ -13,10 +13,9 @@ put_samply_to_bed(Samply *sam)
|
||||||
free_image(sam->walka);
|
free_image(sam->walka);
|
||||||
babble("free samply walk b!!");
|
babble("free samply walk b!!");
|
||||||
free_image(sam->walkb);
|
free_image(sam->walkb);
|
||||||
|
babble("good night, samply!!");
|
||||||
|
SDL_free(sam);
|
||||||
}
|
}
|
||||||
|
|
||||||
babble("good night, samply!!");
|
|
||||||
SDL_free(sam);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Samply *
|
Samply *
|
||||||
|
@ -34,7 +33,7 @@ wake_samply_up(SDL_Renderer *ren)
|
||||||
babble("stand samply up!!");
|
babble("stand samply up!!");
|
||||||
sam->idle = load_image(ren, "samply/Samply.png");
|
sam->idle = load_image(ren, "samply/Samply.png");
|
||||||
if (!sam->idle) {
|
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);
|
put_samply_to_bed(sam);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +41,7 @@ wake_samply_up(SDL_Renderer *ren)
|
||||||
babble("samply walk! part 1!!");
|
babble("samply walk! part 1!!");
|
||||||
sam->walka = load_image(ren, "samply/Samply_Walk1.png");
|
sam->walka = load_image(ren, "samply/Samply_Walk1.png");
|
||||||
if (!sam->walka) {
|
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);
|
put_samply_to_bed(sam);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +49,7 @@ wake_samply_up(SDL_Renderer *ren)
|
||||||
babble("samply walk! part 2!!");
|
babble("samply walk! part 2!!");
|
||||||
sam->walkb = load_image(ren, "samply/Samply_Walk2.png");
|
sam->walkb = load_image(ren, "samply/Samply_Walk2.png");
|
||||||
if (!sam->walkb) {
|
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);
|
put_samply_to_bed(sam);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ SDL_AppInit(void **as, int argc, char **argv)
|
||||||
SDL_SetHint(SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT, "1");
|
SDL_SetHint(SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT, "1");
|
||||||
|
|
||||||
babble("create win+render...");
|
babble("create win+render...");
|
||||||
if (!SDL_CreateWindowAndRenderer("slutpet", 320, 240,
|
if (!SDL_CreateWindowAndRenderer("slutpet", 320, 320,
|
||||||
SDL_WINDOW_TRANSPARENT | SDL_WINDOW_BORDERLESS
|
SDL_WINDOW_TRANSPARENT | SDL_WINDOW_BORDERLESS
|
||||||
| SDL_WINDOW_NOT_FOCUSABLE
|
| SDL_WINDOW_NOT_FOCUSABLE
|
||||||
| SDL_WINDOW_ALWAYS_ON_TOP,
|
| SDL_WINDOW_ALWAYS_ON_TOP,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue