diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2018-04-14 23:54:44 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2018-04-14 23:54:44 +0900 |
commit | a771a6f083d450c9cbba7367a08602c0a4bd6abc (patch) | |
tree | e540f5edf4b1fe7c271d55ab542ab72d42c521ae /common/fmplayer_fontrom_unix.c | |
parent | 61c98716a1fe1269d481d1be20e2d71a52f9a0b2 (diff) |
win32: fixed several UI issues and updated manifest
Diffstat (limited to 'common/fmplayer_fontrom_unix.c')
-rw-r--r-- | common/fmplayer_fontrom_unix.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |