QDpi QEglFSHooks::logicalDpi() const { QSizeF ps = physicalScreenSize(); QSize s = screenSize(); return QDpi(25.4 * s.width() / ps.width(), 25.4 * s.height() / ps.height()); }
QDpi QEGLDeviceIntegration::logicalDpi() const { const QSizeF ps = physicalScreenSize(); const QSize s = screenSize(); if (!ps.isEmpty() && !s.isEmpty()) return QDpi(25.4 * s.width() / ps.width(), 25.4 * s.height() / ps.height()); else return QDpi(100, 100); }