Standardize mouse input scaling to avoid variance based on stream resolution

This commit is contained in:
Cameron Gutman
2020-04-18 14:33:55 -07:00
parent 10d2e1635b
commit bd5e0ecc40
3 changed files with 8 additions and 32 deletions

View File

@@ -77,13 +77,6 @@
return;
}
}
// Set mouse delta factors from the screen resolution and stream size
CGFloat screenScale = [[UIScreen mainScreen] scale];
CGRect screenBounds = [[UIScreen mainScreen] bounds];
CGSize screenSize = CGSizeMake(screenBounds.size.width * screenScale, screenBounds.size.height * screenScale);
[((StreamView*)_renderView) setMouseDeltaFactors:_config.width / screenSize.width
y:_config.height / screenSize.height];
// Populate the config's version fields from serverinfo
_config.appVersion = appversion;