Fix spinners on tvOS and mouse support using the remote

This commit is contained in:
Cameron Gutman
2018-08-26 15:55:39 -07:00
parent 1b681a8730
commit 2e479837ed
2 changed files with 8 additions and 7 deletions

View File

@@ -76,7 +76,7 @@
}
}
#if TARGET_OS_IPHONE && !TARGET_OS_TV
#if TARGET_OS_IPHONE
// Set mouse delta factors from the screen resolution and stream size
CGFloat screenScale = [[UIScreen mainScreen] scale];
CGRect screenBounds = [[UIScreen mainScreen] bounds];
@@ -84,6 +84,7 @@
[((StreamView*)_renderView) setMouseDeltaFactors:_config.width / screenSize.width
y:_config.height / screenSize.height];
#endif
// Populate the config's version fields from serverinfo
_config.appVersion = appversion;
_config.gfeVersion = gfeVersion;