Lime-3DS-Emulator
Lime-3DS-Emulator copied to clipboard
Changing screen layouts on Android not working properly
Is there an existing issue for this?
- [X] I have searched the existing issues
Affected Build(s)
2108
Description of Issue
If I change the landscape screen layout from the choices, nothing happens until I rotate the screen back and forth once. If I try to swap the positions of the screens, it changes right back to the default layout, even though the dropdown says that Hybrid (or whatever you chose) is selected.
Expected Behavior
Selecting a different screen layout should display the new layout with rotating the screen back and forth first, and should persist if the screen are swapped.
Reproduction Steps
- Start with device horizontal
- Open the side menu and select a new screen layout and note that nothing happened
- Unlock device rotation if needed and rotate screen to be in vertical mode, then rotate back to horizontal, noting that the layout has now changed to your selection
- Press controller hotkey (or via any other method) to swap screens and note that the layout has defaulted back to the original
Log File
N/A
System Configuration
Anbernic RG405V
CPU: Unisoc Tiger T618 64-bit octa-core 2[email protected]+6[email protected] GPU/Driver: Mali G52@850Mhz RAM: 4GB LPDDR4X@1866Mhz OS: Gamma OS (custom firmware)
This might be a device specific issue actually, and I have a theory as to the source of the issue. The RG405V has its screen rotated due to it being in the vague style of a gameboy. The screen is wider than it taller in this configuration. When I rotate the device so all the controls and everything are facing to the side, the screen is taller than it is wider. I say all this to illustrate that, perhaps, the screen is reporting reversed positions, confusing Lime?
The window swapping and layout changing buttons behave perfectly when held sideways, but the controls are completely unusable, so that's not really a solution, but it does give more credence to my theory.
I've had no issues with this on either of my devices so not sure what to do about this
i wonder if this and some of the other bugs with portrait/landscape could be solved by ignoring what the device reports in terms of orientation and simply comparing width and height to determine if a device is in landscape or portrait. if the height is > the the width, we could declare that "portrait mode" in the code. This assumes the device correctly reports height and width though!
I can confirm that I have this issue as well on a hacked Nintendo Switch (running Android 10). The problem is likely related to what the poster above me mentioned, because the Switch's LCD screen is actually a 720x1280 screen natively, rotated 270 degrees by the driver. Though on the OS side at least, apps like AIDA64 correctly reads the display resolution as 1280x720 (when landscape) or 720x1280 (when portrait).
This issue has been marked as stale. If there is no activity within the next 10 days, this issue will be closed.
This issue has been closed as stale.