fix & improve platform popups

This commit is contained in:
2026-03-05 17:43:19 -05:00
parent cb7ecbd3f7
commit a0875fd1ff
12 changed files with 189 additions and 17 deletions

View File

@@ -1537,3 +1537,12 @@ void renderer_set_font_scale(Renderer *r, F32 scale) {
if (r->font_texture) { r->font_texture->Release(); r->font_texture = nullptr; }
create_font_atlas(r, target_size);
}
void renderer_sync_from_parent(Renderer *r) {
if (!r || !r->parent) return;
Renderer *p = r->parent;
r->font_texture = p->font_texture;
r->font_atlas_size = p->font_atlas_size;
r->font_line_height = p->font_line_height;
memcpy(r->glyphs, p->glyphs, sizeof(r->glyphs));
}