Driving system for active-matrix displays