At some point you're going to pick a viewport size based on the aspect ratio of the resolution, I think. And when you do, you'll want to pass that viewport size in this function.  That probably doesn't need to happen now, but seems like it would eventually be a nice optimization.  You might add a comment here.