gfx.wayland.device_size

gfx.wayland

device_size(w, h, scale) -> dw, dh

Compute a buffer's size at a scale

The device pixels of a logical w x h at scale, in 120ths: floor(w * scale / 120 + 0.5), the rounding fractional-scale-v1 names. At an integer scale, a multiple of 120, it is exact. Never under 1.