Merge pull request #97 from antonskwr/mouse-position-osx-fix

Update C sources, macOS mouse position fix
This commit is contained in:
Milan Nikolic 2020-01-23 00:50:34 +01:00 committed by GitHub
commit 72bb6e01ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3150,7 +3150,10 @@ static bool InitGraphicsDevice(int width, int height)
// Screen scaling matrix is required in case desired screen area is different than display area
screenScaling = MatrixScale((float)fbWidth/screenWidth, (float)fbHeight/screenHeight, 1.0f);
#if !defined(__APPLE__)
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
#endif
SetTextureFilter(GetFontDefault().texture, FILTER_BILINEAR);
#endif // PLATFORM_DESKTOP && SUPPORT_HIGH_DPI
// Setup default viewport