An ophthalmic surgical microscope can include a first light source configured to project a first light beam at an observer's eye. The microscope can include a first wavefront sensor. The first wavefront sensor can be configured to determine aberrations in the first reflection wavefront of a reflection of the first light beam. The microscope can include adaptive optical element(s). The adaptive optical element(s) can be controlled to modify the phase of incident light. The microscope can include a computing device in communication with the first wavefront sensor and the adaptive optical element(s). The computing device can be configured to generate the control signal to compensate for the aberrations and to provide the control signal to the adaptive optical element(s). A second light source and second wavefront sensor can be provided to compensate for aberrations of a subject's eye.