Add wxDisplay::GetScaleFactor()

This is conceptually the same as the ratio of the current DPI to the
standard one, but can be implemented more directly for wxGTK3 and wxOSX
(although the latter doesn't implement it yet).
This commit is contained in:
Vadim Zeitlin
2020-08-07 00:10:22 +02:00
parent e902050002
commit 19fd0fcfd7
3 changed files with 35 additions and 0 deletions

View File

@@ -102,6 +102,9 @@ public:
return wxSize(GetStdPPIValue(), GetStdPPIValue());
}
// get the scaling used by this display
double GetScaleFactor() const;
// name may be empty
wxString GetName() const;