update the calculation of device pixel resolution