From f346c672fb411b33dc065188ef0d2f107ce55040 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 4 Dec 2019 18:09:56 +0100 Subject: [PATCH] Work on macOS HighDPI issue #826 --- src/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.c b/src/core.c index 583be4df8..7ee9cda8e 100644 --- a/src/core.c +++ b/src/core.c @@ -3174,7 +3174,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