moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
4.17k stars 666 forks source link

Surface Duo: Wrong native resolution in single screen mode #1142

Open RaouleMenard opened 2 years ago

RaouleMenard commented 2 years ago

Describe the bug The native resolution (when selecting the resolution in the Android client) is the full dual screen resolution even when the phone is in single screen mode. 2700 x 1800 instead of 1800 x 1350. Can you please add the 1800 x 1350 resolution option? It's as simple as that, no need to support anything specific to the Duo. I've tried to build Moonlight myself but can't make a working environment.

Device details

Additional context 2700 x 1800 also doesn't work: Black screen then crash after a few seconds. In single screen mode, 1440p and 4K crash the same way. 1080p stretched works but the image is blurry.

Thanks.

RaouleMenard commented 2 years ago

OK, so I've managed to have a working environment, edited a few files in less than 5 minutes to add this resolution, and it works!

The image is way sharper than using 1080p stretched, especially with RetroArch + Mega Bezel CRT shader that looks amazing!

Anyway, can you please add this resolution in the future versions? It's as simple as adding the "1800x1350" resolution. I've just tracked the 1080p resolution using "Find in Files" and imitated it. Nothing specific to the Duo's weird APIs or such.

I'm providing my .APK if someone is in a similar situation, because the difference is HUGE. moonlight-app-nonRoot-debug.zip