very wonky movement implementation
This commit is contained in:
parent
d2155bf27e
commit
0fc07ac95e
6 changed files with 74 additions and 13 deletions
16
slutpet.c
16
slutpet.c
|
@ -95,8 +95,22 @@ SDL_AppInit(void **as, int argc, char **argv)
|
|||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
if (SDL_EnableScreenSaver() == false)
|
||||
shit("cannot disable screensaver: %s", SDL_GetError());
|
||||
|
||||
st->dpy = SDL_GetDisplayForWindow(st->win);
|
||||
if (!st->dpy) {
|
||||
fuck("cannot get current display: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
if (SDL_GetDisplayBounds(st->dpy, &st->bounds) == false) {
|
||||
fuck("cannot get display bounds: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
babble("create samply!!...");
|
||||
st->sam = wake_samply_up(st->ren);
|
||||
st->sam = wake_samply_up(st);
|
||||
if (!st->sam) {
|
||||
fuck("samply said no. too bad!");
|
||||
return SDL_APP_FAILURE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue