Add OSXMakeDPIFromScaleFactor() helper

No real changes, just avoid repeating wxRound(scaleFactor*72) in several
places and do it in this single function instead.
This commit is contained in:
Vadim Zeitlin
2020-07-21 17:13:41 +02:00
parent a2c55fa834
commit a8bb796f8c
3 changed files with 14 additions and 3 deletions

View File

@@ -294,6 +294,9 @@ public:
// internal response to size events
virtual void MacOnInternalSize() {}
// Return the DPI corresponding to the given scale factor.
static wxSize OSXMakeDPIFromScaleFactor(double scaleFactor);
protected:
// For controls like radio buttons which are genuinely composite
wxList m_subControls;