]> git.ozlabs.org Git - petitboot/commitdiff
Small change to acceleration curves
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Apr 2007 05:41:41 +0000 (15:41 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Apr 2007 05:41:41 +0000 (15:41 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
petitboot.c

index ea7dc57619d1df9f540f6a8642182f3a621f5777..236d8e7d448877ee6568279ac5b1ebca1911208d 100644 (file)
@@ -290,7 +290,7 @@ static void pboot_rpane_draw(twin_window_t *window)
 static twin_time_t pboot_rfocus_timeout (twin_time_t now, void *closure)
 {
        int dir = 1, dist, pos;
 static twin_time_t pboot_rfocus_timeout (twin_time_t now, void *closure)
 {
        int dir = 1, dist, pos;
-       const int accel[11] = { 7, 4, 2, 1, 1, 1, 1, 2, 3, 4, 5 };
+       const int accel[11] = { 7, 4, 2, 1, 1, 1, 1, 1, 2, 2, 3 };
 
        dist = abs(pboot_rpane->focus_target - pboot_rpane->focus_start);
        dir = dist > 5 ? 5 : dist;
 
        dist = abs(pboot_rpane->focus_target - pboot_rpane->focus_start);
        dir = dist > 5 ? 5 : dist;
@@ -571,7 +571,7 @@ static void pboot_create_rpane(void)
 static twin_time_t pboot_lfocus_timeout (twin_time_t now, void *closure)
 {
        int dir = 1, dist, pos;
 static twin_time_t pboot_lfocus_timeout (twin_time_t now, void *closure)
 {
        int dir = 1, dist, pos;
-       const int accel[11] = { 7, 4, 2, 1, 1, 1, 1, 2, 3, 4, 5 };
+       const int accel[11] = { 7, 4, 2, 1, 1, 1, 1, 1, 2, 2, 3 };
 
        dist = abs(pboot_lpane->focus_target - pboot_lpane->focus_start);
        pos = pboot_lpane->focus_target - (int)pboot_lpane->focus_box.top;
 
        dist = abs(pboot_lpane->focus_target - pboot_lpane->focus_start);
        pos = pboot_lpane->focus_target - (int)pboot_lpane->focus_box.top;