mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-16 23:06:07 +00:00
Work on macOS HighDPI issue #826
This commit is contained in:
@@ -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
|
// 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);
|
screenScaling = MatrixScale((float)fbWidth/screenWidth, (float)fbHeight/screenHeight, 1.0f);
|
||||||
|
#if !defined(__APPLE__)
|
||||||
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
|
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
|
||||||
|
#endif
|
||||||
|
SetTextureFilter(GetFontDefault().texture, FILTER_BILINEAR);
|
||||||
#endif // PLATFORM_DESKTOP && SUPPORT_HIGH_DPI
|
#endif // PLATFORM_DESKTOP && SUPPORT_HIGH_DPI
|
||||||
|
|
||||||
// Setup default viewport
|
// Setup default viewport
|
||||||
|
Reference in New Issue
Block a user