mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 18:19:23 +00:00
Important speedup by not redrawing too much
This commit is contained in:
1 parent
4545f150f3
commit
947fa16c8b
11 files changed
+221
-73
No files matched your search
+4
-1
@@ -77,13 +77,16 @@ label_is_instance (void *vself __attribute__((unused)), const char *type)
|
||||
}
|
||||
|
||||
static void
|
||||
label_paint (void *vself)
|
||||
label_paint (void *vself, const grub_video_rect_t *region)
|
||||
{
|
||||
grub_gui_label_t self = vself;
|
||||
|
||||
if (! self->visible)
|
||||
return;
|
||||
|
||||
if (!grub_video_have_common_points (region, &self->bounds))
|
||||
return;
|
||||
|
||||
/* Calculate the starting x coordinate. */
|
||||
int left_x;
|
||||
if (self->align == align_left)
|
||||
|
||||
Reference in new issue
Block a user