freemyipod r806 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r805‎ | r806 | r807 >
Date:20:42, 20 November 2011
Author:theseven
Status:new
Tags:
Comment:
Boot menu: Fix battery meter and clock during animations
Modified paths:
  • /apps/bootmenu-ipodclassic/main.c (modified) (history)
  • /apps/bootmenu-ipodnano2g/main.c (modified) (history)

Diff [purge]

Index: apps/bootmenu-ipodclassic/main.c
@@ -64,6 +64,7 @@
6565 {
6666 rendertext(framebuf, x, 140, 320, 0xff3333ff, 0xa0000000, line1);
6767 rendertext(framebuf, x, 148, 320, 0xff3333ff, 0xa0000000, line2);
 68+ update_display(NULL);
6869 displaylcd(0, 0, 320, 240, framebuf, 0, 0, 320);
6970 sleep(5000000);
7071 }
@@ -244,6 +245,7 @@
245246 {
246247 memcpy(framebuf, bg, 320 * 240 * 3);
247248 rendertext(framebuf, 70, 125, 320, 0xff7fffff, 0, "Reformatting data partition...");
 249+ update_display(NULL);
248250 displaylcd(0, 0, 320, 240, framebuf, 0, 0, 320);
249251 struct emcorelib_header* libmkfat32 = loadlib(LIBMKFAT32_IDENTIFIER,
250252 LIBMKFAT32_API_VERSION, "libmkf32");
@@ -412,6 +414,7 @@
413415 else memcpy(framebuf, bg, 320 * 240 * 3);
414416 ui->blit(280, MIN(86, i), 3, framebuf, 20, MAX(0, i - 86), 320,
415417 rbxlogo, 0, MAX(0, 86 - i), 280);
 418+ update_display(NULL);
416419 displaylcd(0, 0, 320, 240, framebuf, 0, 0, 320);
417420 }
418421 boot->load_from_file(firmware, size, true, "/.rockbox/rockbox.ipod", 0);
Index: apps/bootmenu-ipodnano2g/main.c
@@ -68,6 +68,7 @@
6969 {
7070 rendertext(framebuf, x, 73, 176, 0xff3333ff, 0xa0000000, line1);
7171 rendertext(framebuf, x, 81, 176, 0xff3333ff, 0xa0000000, line2);
 72+ update_display(NULL);
7273 displaylcd(0, 0, 176, 132, framebuf, 0, 0, 176);
7374 sleep(5000000);
7475 }
@@ -277,6 +278,7 @@
278279 {
279280 memcpy(framebuf, bg, 176 * 132 * 3);
280281 rendertext(framebuf, 7, 65, 176, 0xff7fffff, 0, "Reformatting data partition");
 282+ update_display(NULL);
281283 displaylcd(0, 0, 176, 132, framebuf, 0, 0, 176);
282284 struct emcorelib_header* libmkfat32 = loadlib(LIBMKFAT32_IDENTIFIER,
283285 LIBMKFAT32_API_VERSION, "libmkf32");
@@ -485,6 +487,7 @@
486488 memcpy(framebuf2, framebuf, 176 * 132 * 3);
487489 ui->blenda(111, i, 255, framebuf2, 32, 0, 176,
488490 framebuf2, 32, 0, 176, crapple, 0, 115 - i, 111);
 491+ update_display(NULL);
489492 displaylcd(0, 0, 176, 132, framebuf2, 0, 0, 176);
490493 }
491494 boot->load_from_file(firmware, size, false, "/.boot/appleos.ucl", 0x800000);
@@ -513,6 +516,7 @@
514517 else memcpy(framebuf, bg, 176 * 132 * 3);
515518 ui->blit(154, MIN(47, i), 3, framebuf, 11, MAX(0, i - 47), 176,
516519 rbxlogo, 0, MAX(0, 47 - i), 154);
 520+ update_display(NULL);
517521 displaylcd(0, 0, 176, 132, framebuf, 0, 0, 176);
518522 }
519523 boot->load_from_file(firmware, size, true, "/.rockbox/rockbox.ipod", 0);