[Bug 322861] vesa mode validation doesn't handle multiple modes of the same size correctly