SDSS-IV MaStar: Stellar parameter determination with continuum-supplemented full-spectrum fitting