#ways to get the client area size

4 messages · Page 1 of 1 (latest)

surreal fjord
#

how can I get the minecraft screen size in pixels (actual pixels on screen) and not the device-independent pixels (DIPs), is there a way to achieve this inside the render() method of any Screen implementation?

#

I know this could be done in several ways, but I am looking for the idiomatic way (not really required)

livid rivet
#

getWidth and getHeight on window from client.getwindow()

#

What do you need it for? Most of the time you want to respect gui scale and such.