Update rcore.c

This commit is contained in:
SuperUserNameMan 2024-07-24 21:25:54 +02:00 committed by GitHub
parent eac2e6f3e7
commit d4f3e1af58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -683,6 +683,10 @@ void InitWindow(int width, int height, const char *title)
// RL_TEXTURE_FILTER_LINEAR - tex filter: BILINEAR, no mipmaps
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MIN_FILTER, RL_TEXTURE_FILTER_LINEAR);
rlTextureParameters(GetFontDefault().texture.id, RL_TEXTURE_MAG_FILTER, RL_TEXTURE_FILTER_LINEAR);
// As of 2024-07-24, to keep backward compatibility, `FLAG_WINDOW_HIGHDPI` does not contain the
// bit of `FLAG_TEXT_LINEAR_FILTER`, so we add it here for forward compatibility. TODO remove once deprecated.
CORE.Window.flags |= FLAG_TEXT_LINEAR_FILTER;
}
#endif