Make wxWindow::GetContentScaleFactor() useful for non-OSX platforms.

Return the ration of the current DPI to the standard one to allow using this
function to scale pixel values for the current screen resolution.
This commit is contained in:
Vadim Zeitlin
2015-03-18 15:07:02 +01:00
parent 6448fa074a
commit bc492a9e6e
3 changed files with 27 additions and 5 deletions

View File

@@ -533,9 +533,8 @@ public:
// returns the magnification of the content of this window
// eg 2.0 for a window on a retina screen
virtual double GetContentScaleFactor() const
{ return 1.0; }
virtual double GetContentScaleFactor() const;
// return the size of the left/right and top/bottom borders in x and y
// components of the result respectively
virtual wxSize GetWindowBorderSize() const;