mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-25 05:53:05 +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 {
|
||||
updateNativeResolutionEntry(
|
||||
getActivity().getWindowManager().getDefaultDisplay().getWidth(),
|
||||
getActivity().getWindowManager().getDefaultDisplay().getHeight());
|
||||
Display display = getActivity().getWindowManager().getDefaultDisplay();
|
||||
int width = Math.max(display.getWidth(), display.getHeight());
|
||||
int height = Math.min(display.getWidth(), display.getHeight());
|
||||
updateNativeResolutionEntry(width, height);
|
||||
}
|
||||
|
||||
if (!PreferenceConfiguration.readPreferences(this.getActivity()).unlockFps) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user