making GetDPIScaleFactor virtual, adding macOS direct impl

This commit is contained in:
Stefan Csomor
2020-08-08 18:43:55 +02:00
committed by Vadim Zeitlin
parent 8bad3b5e80
commit 7dc67a1f9f
3 changed files with 10 additions and 2 deletions

View File

@@ -537,7 +537,7 @@ public:
// Return the ratio of the DPI used by this window to the standard DPI,
// e.g. 1 for standard DPI screens and 2 for "200% scaling".
double GetDPIScaleFactor() const;
virtual double GetDPIScaleFactor() const;
// return the size of the left/right and top/bottom borders in x and y
// components of the result respectively