summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-26 18:53:34 +0100
committerRay <[email protected]>2020-01-26 18:53:34 +0100
commit7e9bed5c89d8a20eb897981546b5357d6e1e96c7 (patch)
treebc43c16667df68b8afb2f611c49554fce4ac721e /src
parent5ec87c4c6fd0b9aa40cda7bab527fa9ea1ee461f (diff)
downloadraylib-7e9bed5c89d8a20eb897981546b5357d6e1e96c7.tar.gz
raylib-7e9bed5c89d8a20eb897981546b5357d6e1e96c7.zip
Review default font scale filter for HighDPI mode
Diffstat (limited to 'src')
-rw-r--r--src/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 9ed45b3f..b5a8544d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -680,6 +680,10 @@ void InitWindow(int width, int height, const char *title)
// NOTE: External function (defined in module: text)
LoadFontDefault();
#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)
// Init raw input system
@@ -3229,7 +3233,6 @@ static bool InitGraphicsDevice(int width, int height)
#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