瀏覽代碼

Work on macOS HighDPI issue #826

pull/1034/head
raysan5 6 年之前
父節點
當前提交
f346c672fb
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      src/core.c

+ 3
- 0
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

Loading…
取消
儲存