mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Fix resolution comparision issue with portrait displays
This commit is contained in:
@@ -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