in 1.1, I'm used to adjust (GUI) coordinates like this:
Code: Select all
local scale = player.display_scale
-- get/calculate some x/y
local pos = {x * scale, y * scale}
Code: Select all
local scale = player.display_scale
local density_scale = player.display_density_scale
-- get/calculate some x/y
local pos = {x * scale * density_scale, y * scale * density_scale}
- providing width and height for a frame/flow control
- rendering objects on a surface
As I do not (yet) have access to a high-density display for testing/evaluating, I'm wondering if anybody has some experience with this...
TIA, chexx