This commit is contained in:
cat 2025-06-05 16:38:39 +10:00
parent 0fc07ac95e
commit cf5334fb66
3 changed files with 18 additions and 3 deletions

View file

@ -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,