bonk
This commit is contained in:
parent
0fc07ac95e
commit
cf5334fb66
3 changed files with 18 additions and 3 deletions
|
@ -50,6 +50,7 @@ SDL_AppIterate(void *as)
|
|||
SDL_Texture *tx;
|
||||
Uint64 ms;
|
||||
|
||||
st->frame++;
|
||||
SDL_SetRenderDrawColor(st->ren, 0, 0, 0, SDL_ALPHA_TRANSPARENT);
|
||||
SDL_RenderClear(st->ren);
|
||||
|
||||
|
@ -84,6 +85,7 @@ SDL_AppInit(void **as, int argc, char **argv)
|
|||
SDL_SetHint(SDL_HINT_X11_FORCE_OVERRIDE_REDIRECT, "1");
|
||||
|
||||
st->lastframe = SDL_GetTicks();
|
||||
st->frame = 0;
|
||||
|
||||
babble("create win+render...");
|
||||
if (!SDL_CreateWindowAndRenderer("slutpet", 320, 320,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue