I have a program which does some things using previously set coordinates. I want to make my program more user-friendly. How to get relative coordinates if a screen dimension or another setting is changed? How to take into account these changes?
Example:
I have 1920x1080 screen with set coordinates x=1400, y=800. I need to get the same point on 1600x900 screen e.g. And how to take into consideration other screen settings (dpi, nvidia panel settings etc)?
What ways is there to do it?
I think about using percents to calculate coordinates