From b76645e26bb66b30c2f21f0b54f12762b0788d4e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 5 Aug 2018 15:03:24 -0700 Subject: [PATCH] Fix resolution comparision issue with portrait displays --- app/gui/SettingsView.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/gui/SettingsView.qml b/app/gui/SettingsView.qml index ce08b88a..13896c60 100644 --- a/app/gui/SettingsView.qml +++ b/app/gui/SettingsView.qml @@ -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