mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Check for GFE version attribute before enabling 4K
This commit is contained in:
parent
b640564689
commit
5112179fca
@ -374,6 +374,16 @@ public class NvHTTP {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GFE 2.7 released without 4K support, even though it claims to have such
|
||||||
|
// support using the SupportedDisplayMode element. We'll use the new GfeVersion
|
||||||
|
// element to tell whether 4K is supported or not. For now, we just check the existence
|
||||||
|
// of this element. I'm hopeful that the production version that ships with 4K will
|
||||||
|
// also be the first production version that has this element.
|
||||||
|
String gfeVersion = getXmlString(serverInfo, "GfeVersion");
|
||||||
|
if (gfeVersion == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (Integer.parseInt(heightStr) >= 2160) {
|
if (Integer.parseInt(heightStr) >= 2160) {
|
||||||
// Found a 4K resolution in the list
|
// Found a 4K resolution in the list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user