diff options
| author | raysan5 <[email protected]> | 2019-12-04 18:09:56 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-12-04 18:09:56 +0100 |
| commit | f346c672fb411b33dc065188ef0d2f107ce55040 (patch) | |
| tree | 6a8879e1cf9127a82752521183fc4e541593f0a2 /src | |
| parent | 08adb4b8c3085641a7e316f1489a4111dbc9d5c0 (diff) | |
| download | raylib-f346c672fb411b33dc065188ef0d2f107ce55040.tar.gz raylib-f346c672fb411b33dc065188ef0d2f107ce55040.zip | |
Work on macOS HighDPI issue #826
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
