Fix aspect ratio in resolution setting dialog
Fix bug #21915: Resolution selection dialog

The resolution selection dialog didn't set the selected resolution but a
lower one.

Instead of using the index from a filtered list on the unfiltered list,
the function is directly passed the filtered one.