Refactor panel refresh; new debug option debug_frames

This commit is contained in:
o9000
2017-03-04 12:19:35 +01:00
parent cb72aa7996
commit d7f294d7c2
14 changed files with 93 additions and 64 deletions

View File

@@ -118,7 +118,7 @@ void update_clocks_sec(void *arg)
for (int i = 0; i < num_panels; i++)
panels[i].clock.area.resize_needed = 1;
}
panel_refresh = TRUE;
schedule_panel_redraw();
}
void update_clocks_min(void *arg)
@@ -132,7 +132,7 @@ void update_clocks_min(void *arg)
for (int i = 0; i < num_panels; i++)
panels[i].clock.area.resize_needed = 1;
}
panel_refresh = TRUE;
schedule_panel_redraw();
}
}
@@ -239,7 +239,7 @@ void clock_default_font_changed()
panels[i].clock.area.resize_needed = TRUE;
schedule_redraw(&panels[i].clock.area);
}
panel_refresh = TRUE;
schedule_panel_redraw();
}
void clock_compute_text_geometry(Panel *panel,