mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Fix resolution comparision issue with portrait displays
This commit is contained in:
1 parent
9cc20c27ab
commit
b76645e26b
1 file changed
+1
-1
@@ -68,7 +68,7 @@ ScrollView {
|
|||||||
var existing_width = parseInt(resolutionListModel.get(j).video_width);
|
var existing_width = parseInt(resolutionListModel.get(j).video_width);
|
||||||
var existing_height = parseInt(resolutionListModel.get(j).video_height);
|
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
|
// Duplicate entry, skip
|
||||||
indexToAdd = -1
|
indexToAdd = -1
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in new issue
Block a user