add partial draw support.