Adding spciial case for MacOS which has a base DPI of 72.

See issue #3547
This commit is contained in:
Hombre
2019-01-06 20:08:06 +01:00
parent 4d77e44880
commit 0407dc3487
3 changed files with 13 additions and 4 deletions

View File

@@ -38,6 +38,15 @@ protected:
public:
#ifdef __APPLE__
static constexpr double baseDPI = 72;
static constexpr double baseHiDPI = 144;
#else
static constexpr double baseDPI = 96;
static constexpr double baseHiDPI = 192;
#endif
static void init(Gtk::Window *window);
static void cleanup();
static double getDPI ();