SDL2 clearing screen question.

closed account (N8RzwA7f)
Hi.

I just have a basic question

In my app screenMain loads with for for instance button A and button B.
Button A loads screenA , button B loads screenB.

But when for instance in screen B and clicking the area of button A , it responds, even though button A is not rendered onto screenB.


how to solve this? I would need to clear a screen before rendering a new screen or such ?

thanks :) !
SDL2 doesn't support buttons. This means you've rolled your own button control.
Just because you don't draw it, doesn't mean you aren't checking to see if it is pressed.

You need to show your code.
Topic archived. No new replies allowed.