cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
SDL2 clearing screen question.
SDL2 clearing screen question.
Mar 20, 2017 at 5:04am UTC
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 :) !
Mar 20, 2017 at 6:30am UTC
mbozzi
(3934)
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.