update clipping view before drawing