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]
Weird Mobile Screensize Behavior
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Weird Mobile Screensize Behavior
- Attachments
-
- main.zip
- (574 Bytes) Downloaded 78 times
Re: Weird Mobile Screensize Behavior
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
Also check love.graphics.getWidth() and love.graphics.getPixelWidth(), in the Window section of the graphics page:
https://love2d.org/wiki/love.graphics#Window
https://love2d.org/wiki/love.graphics#Window
Who is online
Users browsing this forum: Semrush [Bot] and 2 guests