From d76ea6ffced423998c65991c35feaebfdc46e107 Mon Sep 17 00:00:00 2001 From: Anton Skvartsou Date: Thu, 23 Jan 2020 00:03:28 +0100 Subject: [PATCH] Update C sources, macOS mouse position fix --- raylib/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/raylib/core.c b/raylib/core.c index 4eea4bf..e75417c 100644 --- a/raylib/core.c +++ b/raylib/core.c @@ -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