Weird Mobile Screensize Behavior

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Griff
Prole
Posts: 7
Joined: Sat Feb 03, 2024 9:46 pm

Weird Mobile Screensize Behavior

Post 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]
Attachments
main.zip
(574 Bytes) Downloaded 36 times
Griff
Prole
Posts: 7
Joined: Sat Feb 03, 2024 9:46 pm

Re: Weird Mobile Screensize Behavior

Post 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.
RNavega
Party member
Posts: 249
Joined: Sun Aug 16, 2020 1:28 pm

Re: Weird Mobile Screensize Behavior

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot], Kakkassery_Joseph and 69 guests