mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-19 09:48:15 +00:00
Review default font scale filter for HighDPI mode
This commit is contained in:
@@ -680,6 +680,10 @@ void InitWindow(int width, int height, const char *title)
|
|||||||
// NOTE: External function (defined in module: text)
|
// NOTE: External function (defined in module: text)
|
||||||
LoadFontDefault();
|
LoadFontDefault();
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(PLATFORM_DESKTOP) && defined(SUPPORT_HIGH_DPI)
|
||||||
|
// Set default font texture filter for HighDPI (blurry)
|
||||||
|
SetTextureFilter(GetFontDefault().texture, FILTER_BILINEAR);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(PLATFORM_RPI)
|
#if defined(PLATFORM_RPI)
|
||||||
// Init raw input system
|
// Init raw input system
|
||||||
@@ -3229,7 +3233,6 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
#if !defined(__APPLE__)
|
#if !defined(__APPLE__)
|
||||||
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
|
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
|
||||||
#endif
|
#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