It looks to me like this code subtracts the y padding from the width and the x padding from the height, but I might be misunderstanding something.