iOS: Don't treat AppleTV as an iDevice when resolving physical DPI

Change-Id: I07ac92a7b2d8c65b7d70a4f2ed5f96f8f4d99ef0
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
Tor Arne Vestbø 2017-11-28 19:38:31 +01:00
parent 81908abd5e
commit 038e473cfa

View File

@ -205,9 +205,9 @@ QIOSScreen::QIOSScreen(UIScreen *screen)
, m_uiWindow(0)
, m_orientationListener(0)
{
if (screen == [UIScreen mainScreen]) {
QString deviceIdentifier = deviceModelIdentifier();
QString deviceIdentifier = deviceModelIdentifier();
if (screen == [UIScreen mainScreen] && !deviceIdentifier.startsWith("AppleTV")) {
// Based on https://en.wikipedia.org/wiki/List_of_iOS_devices#Display
// iPhone (1st gen), 3G, 3GS, and iPod Touch (1st3rd gen) are 18-bit devices