Skip to contentSkip to conversation

circular progress bar: one tick is always missed

PATCH In review Vladimir Testov 1 participant 1 message Mar 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 circular progress bar: one tick is always missed

Number of printed ticks is always decreased by 1. (see screenshots)

num_ticks = 8

Before - current state.
After - after applying the patch. Appear - ticks are appearing. Disappear - ticks are disappearing.

Signature · 4 lines
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru
grub-core/gfxmenu/gui_circular_progress.c +2 -2
diff -Naur grub-2.00/grub-core/gfxmenu/gui_circular_progress.c grub-new/grub-core/gfxmenu/gui_circular_progress.c
@@ -152,12 +152,12 @@
   if (self->ticks_disappear)
     {
       tick_begin = nticks;
-      tick_end = self->num_ticks - 1;
+      tick_end = self->num_ticks;
     }
   else
     {
       tick_begin = 0;
-      tick_end = nticks - 1;
+      tick_end = nticks;
     }
 
   int i;