Store these values in DIPs internally and apply FromDIP() when using them.
This is simpler and possibly more precise than rescaling them when getting wxEVT_DPI_CHANGED event and the only awkward part is that we need to use ToDIP() in the setter functions, but this is arguably not very important as these functions are hardly ever used anyhow.
Closes #26076.
https://github.com/wxWidgets/wxWidgets/pull/26235
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Looks ok to me, thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Applied as the commit above.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()