summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2019-12-04 18:09:56 +0100
committerraysan5 <[email protected]>2019-12-04 18:09:56 +0100
commitf346c672fb411b33dc065188ef0d2f107ce55040 (patch)
tree6a8879e1cf9127a82752521183fc4e541593f0a2 /src
parent08adb4b8c3085641a7e316f1489a4111dbc9d5c0 (diff)
downloadraylib-f346c672fb411b33dc065188ef0d2f107ce55040.tar.gz
raylib-f346c672fb411b33dc065188ef0d2f107ce55040.zip
Work on macOS HighDPI issue #826
Diffstat (limited to 'src')
-rw-r--r--src/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 583be4df..7ee9cda8 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