Hi, my problem is, there is users using 800 * 600 resolution, and users using 1600 * 900 resolution.
How should be the algorithm of this scaling?
I solved the position problem, but scaling algorithm is too hard
example:
(I'm creating texts with a MTA using 1600 * 900 resolution)
local width, height = guiGetScreenSize()
scaleX = width/1600
scaleY = height/900
...
function renderText()
dxDrawText("text", 487*scaleX, 244*scaleY, 682*scaleX, 261*scaleY, tocolor(255, 255, 255, 255), 1 * (???), "default")
end
??? = ?