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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user