mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-26 06:22:45 +00:00
Normalize resolution orientation on pre-M devices
This commit is contained in:
parent
d86092df1a
commit
b4a7393dca
@ -328,9 +328,10 @@ public class StreamSettings extends Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
updateNativeResolutionEntry(
|
Display display = getActivity().getWindowManager().getDefaultDisplay();
|
||||||
getActivity().getWindowManager().getDefaultDisplay().getWidth(),
|
int width = Math.max(display.getWidth(), display.getHeight());
|
||||||
getActivity().getWindowManager().getDefaultDisplay().getHeight());
|
int height = Math.min(display.getWidth(), display.getHeight());
|
||||||
|
updateNativeResolutionEntry(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) {
|
if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user