introduce manual clearing path in font cache layer; use to prevent permanent accumulation of font glyphs even after font resizes etc.

This commit is contained in:
Ryan Fleury
2024-12-04 13:34:00 -08:00
parent 94c4000603
commit 09cf0fb348
4 changed files with 34 additions and 15 deletions
+4
View File
@@ -13640,6 +13640,7 @@ rd_frame(void)
//- rjf: font sizes
case RD_CmdKind_IncUIFontScale:
{
fnt_reset();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
if(window != 0)
{
@@ -13650,6 +13651,7 @@ rd_frame(void)
}break;
case RD_CmdKind_DecUIFontScale:
{
fnt_reset();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
if(window != 0)
{
@@ -13660,6 +13662,7 @@ rd_frame(void)
}break;
case RD_CmdKind_IncCodeFontScale:
{
fnt_reset();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
if(window != 0)
{
@@ -13670,6 +13673,7 @@ rd_frame(void)
}break;
case RD_CmdKind_DecCodeFontScale:
{
fnt_reset();
RD_Window *window = rd_window_from_handle(rd_regs()->window);
if(window != 0)
{