Make wxRescaleCoord() private functions

They're probably not that useful in application code, which should just
use wxDPIChangedEvent::Scale() instead, so move them to a private
header instead of making them part of the public API.
This commit is contained in:
Vadim Zeitlin
2021-07-13 16:59:20 +01:00
parent 3787f55a6b
commit 7843c99d5b
9 changed files with 67 additions and 53 deletions

View File

@@ -3450,7 +3450,8 @@ public:
This is a convenience function to use in wxEVT_DPI_CHANGED event
handlers, as they often need to update some sizes to the new DPI.
It simply calls wxRescaleCoord() with GetNewDPI() and GetOldDPI().
It simply calls wxMulDivInt32() with new and old DPI values, but
is more readable and less error-prone.
For example, the returned value will be twice bigger than the original
one when switching from normal (96) DPI to high (2x, 192) DPI.