Refactored buffer size picking.

Fix ignoring iPad mini with Retina.