Fixed incorrect math when calculating the sampled resoluton area.