We present a swept source optical coherence tomography (OCT) system at 1060 nm equipped with a wavefront sensor at 830 nm and a deformable mirror in a closed-loop adaptive optics (AO) system. Due to the AO correction, the confocal profile of the interface optics becomes narrower than the OCT axial range, restricting the part of the B-scan (cross section) with good contrast. By actuating on the deformable mirror, the depth of the focus is changed and the system is used to demonstrate Gabor filtering in order to produce B-scan OCT images with enhanced sensitivity throughout the axial range from a Drosophila larvae. The focus adjustment is achieved by manipulating the curvature of the deformable mirror between two user-defined limits. Particularities of controlling the focus for Gabor filtering using the deformable mirror are presented.