Patent attributes
An electronic device such as a head-mounted display or other display system may have a pair of adjustable focal length lenses. Control circuitry in the head-mounted display may adjust the adjustable focal length lenses so that the adjustable focal length lenses exhibit a series of different focal lengths. A graphics processor may generate undistorted image frames. The adjustable focal length lenses may exhibit a different amount of lens distortion at each focal length. To compensate for these different amounts of lens distortion, a distortion compensation circuit may predistort the undistorted image frames by an appropriate amount for each focal length. The distortion compensation circuit may include mapping and interpolation circuitry and look-up tables that store mapping and interpolation data for each of the focal lengths.