Comments (6)
Looking at the code, it seems like it will do what you want if the window is resizable, right? Here:
SDL/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
Lines 1142 to 1146 in a880410
from sdl.
Looking at the code, it seems like it will do what you want if the window is resizable, right?
You're right - I didn't notice I was missing that flag in my window creation 🤦🏼♂️ Thanks!
from sdl.
I did find another bug though. If choosing between a flipped, or not, version of landscape / portrait, the user setting isn't respected, so it will always use the sensor, regardless of user's auto rotate setting. So, if it's a full 360 rotation, that works fine, and respects the user's auto rotate. But landscapeLeft & landscapeRight will always be sensor, ignoring user's auto rotate. Does that make sense?
from sdl.
Patches welcome!
from sdl.
I'll have a bash at a fix later - it's making me go cross-eyed at the moment.
from sdl.
07636ac fixes the user's auto-rotate issue, but I found yet another problem in the logic:
SDL_SetHint(SDL_HINT_ORIENTATIONS, "LandscapeLeft LandscapeRight Portrait");
will allow PortraitUpsideDown, because there's no distinction between one portrait and both landscape (and visa versa... one landscape and both portraits) when deciding to allow all orientations (hope that makes sense). I don't see a way to actually fix this without looking to see if we're attempting to get landscape or portrait. setOrientationBis()
is flawed; a different approach is needed.
from sdl.
Related Issues (20)
- dummy audio driver does not work on emscripten HOT 6
- Memory leaks SDL_stack_alloc/SDL_stack_free HOT 4
- SDL return code -> SDL_bool? HOT 23
- [Windows 10] Most joystick events do not show up unless initalized with SDL_INIT_VIDEO HOT 1
- Clarify initial content of surfaces and textures HOT 1
- make src/libm a static library internal to SDL ? HOT 18
- [Android] mouse - avoid popping out system bars HOT 1
- Remove unused math code from MSVC and Xcode projects
- ios: infinite hang on SDL_malloc HOT 2
- Windows VC Linker error audio_async and sdl audio functions HOT 3
- Bug in SDL_DelayNS() HOT 2
- Game controller support matrix HOT 3
- DisplayModes for Android devices
- ffplay fails to restore window position correctly upon toggling 'maximize'
- Clipboard async operation blocking HOT 1
- SDL3 Request: Process Spawning HOT 1
- atomic pointer symbol naming HOT 1
- SDL3 Request: SDL_LogOutputRaw (fputs equivalent)
- SDL2: Mac inaccurate display count after disconnection / laptop close
- Macro option to hide OpenGL <=1.3 function definitions in SDL_opengl.h? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.