Android screen orientation (a bug report?)
Posted: Tue Sep 25, 2018 8:01 pm
Hello there!
I have a simple config file
I'm getting strange results when I launch any *.love file with that config and the latest apk from the home page.
It seems like the orientation has changed to portrait but the actual "window" size are wrong: height is being used as width and vice versa.
Moreover, the actual size of a "window" in full-HD.
returns 1080x1920, but...
If I swap params in the conf.lua I'm getting this:
I've tried to set an 1:1 resolution but I'm still getting the portrait outcome.
If I launch the same *.love using a 10.2 love2d and use the original version of the config (portrait, h>w), then the screen stays in lanscape displaying whatever fits it's size and cutting everything else.
Note, that a simple love.graphics.rotate won't suffice, since there will be issues with the GUI.
I have a simple config file
Code: Select all
function love.conf(t)
local major, minor, revision, codename = love.getVersion()
t.title = "TJournal 2018 ("..major ..'.'.. minor ..'.'.. revision ..'-'.. codename ..")"
t.window.width = 480
t.window.height = 800
t.modules.mouse = true
t.modules.window = true
t.window.minwidth = 270
t.window.minheight = 480
t.externalstorage = true
end
It seems like the orientation has changed to portrait but the actual "window" size are wrong: height is being used as width and vice versa.
Moreover, the actual size of a "window" in full-HD.
Code: Select all
love.window.getMode( )
If I launch the same *.love using a 10.2 love2d and use the original version of the config (portrait, h>w), then the screen stays in lanscape displaying whatever fits it's size and cutting everything else.
Note, that a simple love.graphics.rotate won't suffice, since there will be issues with the GUI.