eric-hedengren / calculus-project

Just a final project
0 stars 0 forks source link

Reset Text in Buttons Without Clearing the Whole Screen #1

Open eric-hedengren opened 3 years ago

eric-hedengren commented 3 years ago

As of now, clearing words in the text boxes happens because the entire screen is set to white then the words are put back in position. An alternative method should used so performance is not capped off, such as blanking out just the section with the buttons or creating the buttons as sprites.

eric-hedengren commented 3 years ago

Could this be done by initiating the redrawing in the update function? This would allow for the buttons to be created and handled as sprites which would largely enhance performance.

eric-hedengren commented 3 years ago

Dynamic length boxes would need the initial surfaces redefined in the update command if the function length surpassed the rectangle surrounding it.