diff --git a/source/draw.c b/source/draw.c index 6a3f265..4889a4a 100644 --- a/source/draw.c +++ b/source/draw.c @@ -232,18 +232,18 @@ bool ShowUnlockSequence(u32 seqlvl, const char *format, ...) { va_end(va); str_width = GetDrawStringWidth(str); - str_height = GetDrawStringHeight(str) + (3*10); - if (str_width < 24) str_width = 24; + str_height = GetDrawStringHeight(str) + (4*10); + if (str_width < 24 * 8) str_width = 24 * 8; x = (str_width >= SCREEN_WIDTH_TOP) ? 0 : (SCREEN_WIDTH_TOP - str_width) / 2; - y = (str_height >= SCREEN_HEIGHT) ? 0 : (SCREEN_HEIGHT - (str_height)) / 2; + y = (str_height >= SCREEN_HEIGHT) ? 0 : (SCREEN_HEIGHT - str_height) / 2; ClearScreenF(true, false, COLOR_STD_BG); DrawStringF(true, x, y, COLOR_STD_FONT, COLOR_STD_BG, str); - DrawStringF(true, x, y + str_height - (2*10), COLOR_STD_FONT, COLOR_STD_BG, "To proceed, enter this:"); + DrawStringF(true, x, y + str_height - 28, COLOR_STD_FONT, COLOR_STD_BG, "To proceed, enter this:"); while (true) { for (u32 n = 0; n < len; n++) { - DrawStringF(true, x + (n*4*8), y + str_height - (1*10), + DrawStringF(true, x + (n*4*8), y + str_height - 18, (lvl > n) ? seqcolors[seqlvl] : COLOR_GREY, COLOR_STD_BG, "<%c>", seqsymbols[seqlvl][n]); } if (lvl == len)