add needrepaint param