-1

Results 3 issues of -1

If SDL_Init() was called outside of the main function, then SDL_Quit won't work properly.

waiting

If my app is on windowed then everything works fine, when I go to fullscreen, I get random garbage. Anything that's in the rectangle of pixel the function reads, is...

What the title says, demonstrated in the video DE is XFCE, I know it's Termux on Android but it does happen on regular computers as well https://github.com/user-attachments/assets/442bf211-5b2c-4040-ad9c-4a325ed4d023