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

@@ -3142,8 +3142,8 @@ public:
// Scale the value by the ratio between new and old DPIs carried by this
// event.
int ScaleX(int x) const { return wxRescaleCoord(x, m_newDPI.x, m_oldDPI.x); }
int ScaleY(int y) const { return wxRescaleCoord(y, m_newDPI.y, m_oldDPI.y); }
int ScaleX(int x) const;
int ScaleY(int y) const;
wxSize Scale(wxSize sz) const { return wxSize(ScaleX(sz.x), ScaleY(sz.y)); }