Skip to content
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

Switching screen orientation doesn't work/is buggy #196

Closed
IsometricShahil opened this issue Oct 21, 2020 · 1 comment
Closed

Switching screen orientation doesn't work/is buggy #196

IsometricShahil opened this issue Oct 21, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@IsometricShahil
Copy link

IsometricShahil commented Oct 21, 2020

As mentioned in the FaQ, I tried to get portrait mode in löve with conf.lua, I tried many width/height combinations where height > width but it doesn't seem to work at all.
Here is one of the tried conf.lua:

function love.conf(t)
  t.window.width = 100
  t.window.height = 200
  t.window.fullscreen = true
  t.window.resizable = false
end

Edit: It seems like updateMode doesn't work either, fortunately setMode seems to work perfectly so I will use that for now

@MikuAuahDark
Copy link
Collaborator

MikuAuahDark commented Oct 22, 2020

Alright looks like there's some conflicts going on here.

I tested both the love2d.org-provided APK vs. master branch and I can reproduce it with both APKs. It seems can't properly set orientation to portrait if you set t.window.fullscreen = true at love.conf. The t.window.resizable = false is needed there to prevent the game change orientation so that's fine.

A workaround exist by setting the t.window.fullscreen = false at love.conf then calling love.window.setFullscreen(true) at love.load.

I need to think a way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants