Skip to content

Commit 7e9bed5

Browse files
committed
Review default font scale filter for HighDPI mode
1 parent 5ec87c4 commit 7e9bed5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/core.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ void InitWindow(int width, int height, const char *title)
680680
// NOTE: External function (defined in module: text)
681681
LoadFontDefault();
682682
#endif
683+
#if defined(PLATFORM_DESKTOP) && defined(SUPPORT_HIGH_DPI)
684+
// Set default font texture filter for HighDPI (blurry)
685+
SetTextureFilter(GetFontDefault().texture, FILTER_BILINEAR);
686+
#endif
683687

684688
#if defined(PLATFORM_RPI)
685689
// Init raw input system
@@ -3229,7 +3233,6 @@ static bool InitGraphicsDevice(int width, int height)
32293233
#if !defined(__APPLE__)
32303234
SetMouseScale((float)screenWidth/fbWidth, (float)screenHeight/fbHeight);
32313235
#endif
3232-
SetTextureFilter(GetFontDefault().texture, FILTER_BILINEAR);
32333236
#endif // PLATFORM_DESKTOP && SUPPORT_HIGH_DPI
32343237

32353238
// Setup default viewport

0 commit comments

Comments
 (0)