The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on June 22, 2023, 08:17:57 AM

Title: Android build ignores screen auto-rotation lock
Post by: ceeac on June 22, 2023, 08:17:57 AM
Steps to reproduce on Android 11:
Title: Re: Android build ignores screen auto-rotation lock
Post by: prissi on June 23, 2023, 06:37:40 AM
Not sure how to prevent this. I would think this is a SDL2 bug, since we get windowschange events from SDL and react accordingly.

It is an SDL2 bug: https://github.com/libsdl-org/SDL/issues/6090
Title: Re: Android build ignores screen auto-rotation lock
Post by: Roboron on June 23, 2024, 05:34:58 PM
SDL released a new version last week that fix this

QuoteThis is a stable bugfix release, with the following changes:

- Android rotation will respect user rotation lock preferences

I have updated SDL for Android so we compile with the new version. So this should be fixed for the next release.
Title: Re: Android build ignores screen auto-rotation lock
Post by: prissi on June 24, 2024, 02:15:26 AM
Great, that bug was in SDL2 since early 2023 and now they started on SDL3. So I was afraid they would never fix it and was ready to dig through the interface code.