Split up creation of font group and sending of sprites to GPU

This commit is contained in:
Kovid Goyal
2018-05-26 12:07:40 +05:30
parent da166aef99
commit e056460f0b
4 changed files with 15 additions and 3 deletions

View File

@@ -628,6 +628,7 @@ PYWRAP1(os_window_font_size) {
os_window->font_sz_in_pts = new_sz;
os_window->fonts_data = NULL;
os_window->fonts_data = load_fonts_data(os_window->font_sz_in_pts, os_window->logical_dpi_x, os_window->logical_dpi_y);
send_prerendered_sprites_for_window(os_window);
resize_screen(os_window, os_window->tab_bar_render_data.screen, false);
for (size_t ti = 0; ti < os_window->num_tabs; ti++) {
Tab *tab = os_window->tabs + ti;