Repainting progress bar