inside int main :
Uint32 start = 0; bool running = true; start = SDL_GetTicks();and
while(QUIT==false){
if( running == true ) {
std::stringstream time;
time << "Timer: " << SDL_GetTicks() - start;
seconds = TTF_RenderText_Solid( font, time.str().c_str(), black );
apply_surface(( SCREEN_WIDTH - seconds->w ) / 2, 100, seconds, SCREEN );
//This line :
SDL_FreeSurface( seconds );
}
and this is what the screens say :
The text appear without erasing the previous surface.
Any suggest?






