The same way you set the rects in the first place.
I usually go with the following procedure: process events, update/physics/collision, draw stuff
So you'd have it between your event loop and the drawing.
This however means that you'll probably want to look into making things independent of your refresh rate.