aboutsummaryrefslogtreecommitdiff
path: root/src/common/stream.cpp
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-08-27 00:16:53 -0400
committerCharles Lombardo <clombardo169@gmail.com>2023-08-27 00:16:53 -0400
commitb3fac55a35e76b99979d4b195a4ed269c4280568 (patch)
tree27bc46e8f971b0bd65cd10bb06c5ebb54d059ada /src/common/stream.cpp
parente392005f9442e9f327fcaa9b8a6b13db8ed1d94b (diff)
android: Properly adjust emulation surface aspect ratio
Previously the emulation surface wouldn't respond properly to orientation changes. This would result in the screen appearing stretched when starting in one orientation and switching to another. The code for calculating the bounds of the view have been changed to match the expected behavior now. Before the view would just match parent in height and width. Now instead of using setLeftTopRightBottom (which is intended to be used for animations) we pass newly calculated bounds for the view into super. Now the view bounds match the emulation output. This also means that we don't need the overload for the SettingsActivity to launch it using an ActivityResultLauncher. We can just update the view in onResume.
Diffstat (limited to 'src/common/stream.cpp')
0 files changed, 0 insertions, 0 deletions