Refactor code shared by both preferences::set_resolution() overloads

There was an existing declaration for a preferences::_set_resolution()
function, probably intended for this exact same purpose.