Comments (5)
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
from love.
here's my conf.lua
function love.conf(t)
t.console = false
t.accelerometerjoystick = false
t.window.highdpi = true
t.window.width = 2
t.window.height = 1
t.window.resizable = false
end
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
from love.
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:
If set to true this allows the user to resize the game's window. In version 11.4 and later for Android, this also allows changing orientation between landscape and portrait.
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.
from love.
Oh yeah, the code I pasted was wrong because I was testing if t.window.resizable = true
does what it expects. t.window.resizable = false
should lock orientation while keeping the aspect ratio (can only rotate in landscale), while t.window.resizable = true
allows it to go from landscape to portrait.
Still, with my original testing, I can't reproduce the issue. I'll take a look at your provided conf.lua tomorrow.
from love.
Just tested the following configs to see if highdpi or fullscreen had an effect (none of them functioned as intended for me):
function love.conf(t)
t.console = false
t.accelerometerjoystick = false
t.window.highdpi = true
t.window.width = 2
t.window.height = 1
t.window.resizable = false
t.window.fullscreen = false
end
function love.conf(t)
t.console = false
t.accelerometerjoystick = false
t.window.highdpi = false
t.window.width = 2
t.window.height = 1
t.window.resizable = false
t.window.fullscreen = false
end
function love.conf(t)
t.console = false
t.accelerometerjoystick = false
t.window.highdpi = true
t.window.width = 2
t.window.height = 1
t.window.resizable = true
t.window.fullscreen = true
end
from love.
Related Issues (20)
- Brew install fails on macOS with: Error : SHA256 mismatch HOT 1
- Mouse is not updating on right / bottom screen edge (DPI scale > 100%) HOT 7
- Add a way to get Video duration
- Android Depth Buffer HOT 2
- remove the arbitrary 10x near/far plane scaling in the default projection matrix HOT 12
- Improve documentation about the window's depth buffer HOT 2
- Feature request: more performant anti-aliasing. Like FXAA or TAA. HOT 3
- Depth writes not writing to set mipmap HOT 2
- Documentation: optional didactic "Implementation Details" section HOT 12
- symbol not found in flat namespace (___PHYSFS_platformCalcBaseDir) HOT 3
- allow for vectors in positions and sizes HOT 5
- error: call to member function 'WriteNumber' is ambiguous HOT 4
- Undefined symbols linking for macOS building with CMake
- [12.0] EXR encode/export produces swizzled image content (ABGR instead of RGBA) HOT 8
- love.keyboard.isDown is incorrect after dragging the game window
- Physics fixture/shape :setMask bits are inverted in love compared to box2d
- setColor and setBackgroundColor color component values don't work when using ranges 0-255 HOT 3
- love.graphics.drawLayer() does not work. HOT 3
- Differences between repository and *-linux-src.tar.gz HOT 2
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 love.