Important speedup by not redrawing too much

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-11-24 07:17:18 +01:00
parent 4545f150f3
commit 947fa16c8b
11 changed files with 221 additions and 73 deletions

View file

@ -166,7 +166,7 @@ layout_vertically (grub_gui_box_t self, int modify_layout,
}
static void
box_paint (void *vself)
box_paint (void *vself, const grub_video_rect_t *region)
{
grub_gui_box_t self = vself;
struct component_node *cur;
@ -176,7 +176,7 @@ box_paint (void *vself)
for (cur = self->chead.next; cur != &self->ctail; cur = cur->next)
{
grub_gui_component_t comp = cur->component;
comp->ops->paint (comp);
comp->ops->paint (comp, region);
}
grub_gui_restore_viewport (&vpsave);
}