Force redraw upon menu item selection
[qi-bootmenu.git] / config.h
blobed25bf30bc2fba19cf1caeea6c9e1c745800e771
1 #define APPNAME "Qi Bootmenu"
2 /* whether we should scan /lib/modules/`uname -r`/ for fs modules */
3 #define CONFIG_SUPPORT_KERNEL_FS_MODULES 0
4 /* used to locate kernel ({u,z}Image-$MACHINE.bin) and append file (append-$MACHINE)
5 * can be overriden on the command line -m */
6 #define DEFAULT_MACHINE "GTA02"
7 /* partitions will be mounted under $MOUNTPOINT/$PARTITION */
8 #define MOUNTPOINT "/mnt"
9 /* binaries to exec(3) */
10 #define MODPROBE "/sbin/modprobe"
11 #define KEXEC "/sbin/kexec"
12 /* XXX: use --command-line= instead? */
13 #define KEXEC_CMDLINE "--append="
14 #define FONT_PATH "/usr/share/fonts"
15 #define FONT "Vera"
16 #define FONT_SIZE 20
17 /* logo which is displayed if no logo is found in the partion */
18 #define DEFAULT_LOGO "/usr/share/qi-bootmenu/defaultlogo.png"
19 /* XXX: replace hardcoded values with runtime information */
20 #define SCREEN_WIDTH 480
21 #define SCREEN_HEIGHT 640
23 /* static menu entries */
25 MenuItem menu[] = {
26 { "NAND Flash", DEFAULT_LOGO, boot_nand, "/dev/mtdblock6" },
27 { "Power Off", "/usr/share/qi-bootmenu/poweroff.png", poweroff, NULL },
30 #define LIST_FONT_COLOR RGB(255, 255, 255)
31 #define LIST_FONT_SELECTED_COLOR RGB(255, 102, 0)
32 #define LIST_LOGO_WIDTH 100
33 #define LIST_LOGO_HEIGHT 80
35 #include "gui-list.c"
37 Gui guis[] = {
38 { 'l', gui_list_add_item, gui_list_select_item, gui_list_deselect_item, gui_list_show_error },