From a771a6f083d450c9cbba7367a08602c0a4bd6abc Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sat, 14 Apr 2018 23:54:44 +0900 Subject: win32: fixed several UI issues and updated manifest --- common/fmplayer_fontrom_unix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/fmplayer_fontrom_unix.c') diff --git a/common/fmplayer_fontrom_unix.c b/common/fmplayer_fontrom_unix.c index bb8f12e..238be9c 100644 --- a/common/fmplayer_fontrom_unix.c +++ b/common/fmplayer_fontrom_unix.c @@ -13,7 +13,7 @@ static struct { uint8_t fontrombuf[FONT_ROM_FILESIZE]; } g; -void fmplayer_font_rom_load(struct fmdsp_font *font) { +bool fmplayer_font_rom_load(struct fmdsp_font *font) { const char *path = "font.rom"; const char *home = getenv("HOME"); char *dpath = 0; @@ -40,9 +40,10 @@ void fmplayer_font_rom_load(struct fmdsp_font *font) { goto err; } fclose(f); - return; + return true; err: if (f) fclose(f); fmdsp_font_from_font_rom(font, fmdsp_shinonome_font_rom); + return false; } -- cgit v1.2.3