Reworked sub-pixel offset fix