From 7e2703a49de38100f9ee82042a744517fc7eb171 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 12 Mar 2007 00:59:51 +0000 Subject: Altered some interfaces for the monitor. --- source/gui.c | 58 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'source/gui.c') diff --git a/source/gui.c b/source/gui.c index 2027a37..886c103 100644 --- a/source/gui.c +++ b/source/gui.c @@ -191,14 +191,14 @@ int GUI_Menu(const char *opts[]) int no; int sel; int f; - bool done; - bool defer; + int done; + int defer; w=0; h=0; sel=0; - done=false; - defer=false; + done=FALSE; + defer=FALSE; for(no=0;opts[no];no++) { @@ -239,13 +239,13 @@ int GUI_Menu(const char *opts[]) { swiWaitForVBlank(); } while (keysHeld()&KEY_TOUCH); - done=true; + done=TRUE; } else { if (key & (KEY_A|KEY_B|KEY_X|KEY_Y)) { - done=true; + done=TRUE; } else if ((key & KEY_UP) && sel) { @@ -261,7 +261,7 @@ int GUI_Menu(const char *opts[]) if (tp.px>=x && tp.px<(w+w) && tp.py>=y && tp.py<(y+h)) { - defer=true; + defer=TRUE; sel=(tp.py-y)/16; } } @@ -350,12 +350,12 @@ void GUI_Config(void) { int sel; DS81_ConfigItem f; - bool done; - bool save; + int done; + int save; sel = 0; - done = false; - save = false; + done = FALSE; + save = FALSE; FB_Clear(); @@ -396,13 +396,13 @@ void GUI_Config(void) if (key & KEY_START) { - done=true; + done=TRUE; } #ifndef DS81_DISABLE_FAT else if (key & KEY_SELECT) { - done=true; - save=true; + done=TRUE; + save=TRUE; } #endif else if (key & KEY_A) @@ -439,19 +439,19 @@ void GUI_Config(void) } -bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) +int GUI_FileSelect(char pwd[], char selected_file[], const char *filter) { int no; int sel; int top; int bar_size; double bar_step; - bool done; - bool ret; + int done; + int ret; FB_Colour paper; int off; int f; - bool drag; + int drag; int drag_start; CheckPath(pwd); @@ -469,9 +469,9 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) sel = 0; top = 0; - done = false; - ret = false; - drag = false; + done = FALSE; + ret = FALSE; + drag = FALSE; drag_start = 0; if (no<=FSEL_LINES) @@ -560,13 +560,13 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) } else { - drag = false; + drag = FALSE; } } if (!drag) { - bool activate = false; + int activate = FALSE; do { @@ -583,7 +583,7 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) { if (tp.px > 239) { - drag = true; + drag = TRUE; drag_start = tp.py; } else @@ -596,7 +596,7 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) { if (new_sel == sel) { - activate = true; + activate = TRUE; } else { @@ -665,11 +665,11 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) } else if (key & KEY_A) { - activate = true; + activate = TRUE; } else if (key & KEY_B) { - done = true; + done = TRUE; } if (activate) @@ -698,8 +698,8 @@ bool GUI_FileSelect(char pwd[], char selected_file[], const char *filter) } else { - done = true; - ret = true; + done = TRUE; + ret = TRUE; strcpy(selected_file,pwd); strcat(selected_file,fsel[sel].name); -- cgit v1.2.3