diff --git a/include/arm9/ui.h b/include/arm9/ui.h index 201d5af..2289498 100644 --- a/include/arm9/ui.h +++ b/include/arm9/ui.h @@ -23,3 +23,8 @@ void uiClearConsoles(); void clearConsole(int which); bool uiDialogYesNo(const char *text, const char *textYes, const char *textNo); +void uiPrintCentered(const char *const format, ...); +void uiPrintTextAt(unsigned int x, unsigned int y, const char *const format, ...); +//void uiShowMessageWindow(format, args...); +void uiPrintProgressBar(unsigned int x, unsigned int y, unsigned int width, + unsigned int height, float percentage); diff --git a/source/arm9/ui.c b/source/arm9/ui.c index 663f732..d014b2f 100644 --- a/source/arm9/ui.c +++ b/source/arm9/ui.c @@ -128,7 +128,7 @@ { for(u32 yy = y; yy < y + height; yy++) { - fb[xx * 240 + yy] = color; + fb[xx * SCREEN_HEIGHT_TOP + yy] = color; } } }