fix & improve platform popups
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user