-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t.window.resizble = false doesn't work on android with LOVE 12 #2060
Comments
I seem unable to reproduce this behavior in LOVE 12 with "embed" mode. main.lua function love.draw()
local x, y, w, h = love.window.getSafeArea()
love.graphics.setLineWidth(20)
love.graphics.rectangle("line", x, y, w, h)
love.graphics.print(string.format("%dx%d+%d+%d\n%s", x, y, w, h, love.window.getDisplayOrientation()), 100, 100)
end conf.lua function love.conf(t)
t.window.resizable = false
t.window.fullscreen = false
end |
here's my conf.lua
I'll try and use the example you gave, perhaps the issue is with my phone's specific implementation of auto-rotate?? I don't really know what I'm talking about though, honestly |
I just noticed you were using t.window.resizalbe = true. Does this stop the app from rotating? Because if that's the case then the issue is in the wiki:
Personally I take this to mean that if set to false, it should prevent changing orientation between landscape and portrait, but perhaps I'm interpreting this incorrectly. |
Oh yeah, the code I pasted was wrong because I was testing if Still, with my original testing, I can't reproduce the issue. I'll take a look at your provided conf.lua tomorrow. |
Just tested the following configs to see if highdpi or fullscreen had an effect (none of them functioned as intended for me):
|
When writing t.window.resizable = false in conf.lua, then compiling (with apktool) and running the app on my phone (nothing phone 1) it will rotate between portrait and landscape mode as if t.window.resizable was true. Additionally, it ignores my phone's auto-rotate off toggle, and rotates even when it is disabled (when no app should rotate at all).
The text was updated successfully, but these errors were encountered: