Closed damusss closed 1 month ago
I found the position of
get_pos(desktop=True)
is not scaled in SCALED mode. Will this cause a problem (?
Hi :) as far as I know SCALED is related to a window setting, but the desktop position is relative to the monitor, so by my understanding the monitor position should not be affected by the window size or fullscreen status, so I believe it's not a problem. The only thing that comes to mind is Wayland, but I'm not sure it's possible to check for it or if it's worth it.
We could also make a note about the SCALED thing in the docs
One thing that could be potentially discussed further is the keyword argument naming. Is
desktop
good enough or is there something better? I am fine withdesktop
, but I'm open to other suggestions.
I used Andrew's suggestion. SDL calls it global but I don't think it conveys enough information. absolute was an option but it can be confused with clamped or abs()
We could also make a note about the SCALED thing in the docs
Is it necessary to specify that it's not effected by the SCALED flag?
This pull request combines the following PRs adopting a "better" API (suggested by @ankith26 ) while retaining the functionality. To know about usecases or why please check them both:
Closes #3070 Closes #3101
Combined Sample Code