This commit is contained in:
anod 2022-08-05 18:45:42 +08:00
parent 1d3092b6f7
commit 702129592c
3 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,7 @@ typedef struct
uint16_t amount;
char *filename;
uint16_t *chapter;
uint32 filesize;
uint32_t filesize;
} ACFont;
static ACFont gblfont = {
@ -351,7 +351,7 @@ const char *acf_draw(int x, int y, unsigned width, unsigned height, unsigned max
}
uint32_t unicode;
unsigned *option = width == 0 ? NULL : &width;
unsigned *option = width == 0 ? NULL : &maxwidth;
for (const char *next = next_unicode(utf8_line, &unicode);
next != NULL;
next = next_unicode(utf8_line, &unicode))

View File

@ -85,6 +85,7 @@ static Result scanDir(const char *const path, DirList *const dList, const char *
u32 read; // Number of entries read by fReadDir().
u32 numEntries = 0; // Total number of processed entries.
u32 entBufPos = 0; // Entry buffer position/number of bytes used.
acf_set_font("wqy11.acf");
const u32 filterLen = strlen(filter);
do
{

View File

@ -25,8 +25,6 @@
#include "arm11/drivers/hid.h"
#include "arm11/power.h"
static void setBacklight(void)
{
u8 backlightMax;