Page 1 of 1

Weird Mobile Screensize Behavior

Posted: Fri Mar 22, 2024 2:39 pm
by Griff
So this can be limited to my phone due to settings I'm unaware of but when I call getMode() it gets what should be my screen resolution, however the size I'm actually seeing is different I linked a video of what I see with my phone and a main.zip for you to look at as well.

[youtube]https://youtu.be/Rs5fCK1wEWE?si=Xpp2UyFQUduV8-_B[/youtube]

Re: Weird Mobile Screensize Behavior

Posted: Fri Mar 22, 2024 3:19 pm
by Griff
Upon further messing around it looks like the size of the screen is 380 * 800 in portrait but the getMode() returns my phones true screen resolution.

Re: Weird Mobile Screensize Behavior

Posted: Sun Mar 24, 2024 3:42 am
by RNavega
Also check love.graphics.getWidth() and love.graphics.getPixelWidth(), in the Window section of the graphics page:
https://love2d.org/wiki/love.graphics#Window