Fix resolution comparision issue with portrait displays

This commit is contained in:
Cameron Gutman 2018-08-05 15:03:24 -07:00
parent 9cc20c27ab
commit b76645e26b

View file

@ -68,7 +68,7 @@ ScrollView {
var existing_width = parseInt(resolutionListModel.get(j).video_width);
var existing_height = parseInt(resolutionListModel.get(j).video_height);
if (screenRect.width * screenRect.height === existing_width * existing_height) {
if (screenRect.width === existing_width && screenRect.height === existing_height) {
// Duplicate entry, skip
indexToAdd = -1
break