I was doing my own camera transformations in löve, and i wanted the origin to be the center (instead of the corner) to better handle different aspect ratios.
My screen is 1480x720, and the offset vector needed to be (480, 216) to feel minimally centered. I got those values using a seemingly random equation to make sure that the y-axis stays the same, expanding over the x-axis if the screen ratio is not 16:9. I also confirmed that it is really the center of the screen by using
Oh, thanks.
In the docs for that function i found out what gives the actual width and height without the dpi scaling, being the functions getWidth / getHeight in love.graphics.
Now, "normally", the above should account for DPI scaling (the functions that don't are getPixelWidth and getPixelHeight) but iirc windows has buggy DPI stuff and/or SDL has incomplete support for it, so you need to do some extra work to have it work correctly.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.