diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-02-14 06:26:16 +0000 |
| commit | 1c2aa35371aed8d895b3448dad865b913da57cfb (patch) | |
| tree | 8a790ad8efe5d0abd73eaf77adc854d336ce0ef4 /apps/plugin.c | |
| parent | ed21ab1c8c9b16ec62933313c3d36a93d9255f62 (diff) | |
| download | rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.zip rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.gz rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.bz2 rockbox-1c2aa35371aed8d895b3448dad865b913da57cfb.tar.xz | |
FS#10984 - multifont! 2 major additions:
1) seperate UI font for the remote and main displays
2) allow individual skins to load additional fonts for use in the skin (Uo to 7 extra in this first version) see CustomWPS for info on how to load a font in the skins.
Code should always use FONT_UI+screen_number to get the correct user font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24644 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 0d4d8ed..46ab6e6 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -247,6 +247,10 @@ static const struct plugin_api rockbox_api = { lcd_remote_bitmap, #endif viewport_set_defaults, +#ifdef HAVE_LCD_BITMAP + viewportmanager_theme_enable, + viewportmanager_theme_undo, +#endif /* list */ gui_synclist_init, @@ -292,6 +296,7 @@ static const struct plugin_api rockbox_api = { #endif /* HAVE_BUTTON_LIGHT */ /* file */ + open_utf8, #ifdef HAVE_PLUGIN_CHECK_OPEN_CLOSE (open_func)open_wrapper, close_wrapper, @@ -325,6 +330,7 @@ static const struct plugin_api rockbox_api = { create_numbered_filename, file_exists, strip_extension, + crc_32, /* dir */ opendir, @@ -432,6 +438,7 @@ static const struct plugin_api rockbox_api = { atoi, strchr, strcat, + strlcat, memchr, memcmp, strcasestr, @@ -476,6 +483,7 @@ static const struct plugin_api rockbox_api = { pcm_get_peak_buffer, pcm_play_lock, pcm_play_unlock, + pcmbuf_beep, #ifdef HAVE_RECORDING &rec_freq_sampr[0], pcm_init_recording, @@ -588,6 +596,9 @@ static const struct plugin_api rockbox_api = { #endif /* misc */ +#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) + &errno, +#endif srand, rand, (qsort_func)qsort, @@ -698,19 +709,6 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ -#if (CONFIG_CODEC == SWCODEC) - pcmbuf_beep, -#endif - crc_32, - open_utf8, -#ifdef HAVE_LCD_BITMAP - viewportmanager_theme_enable, - viewportmanager_theme_undo, -#endif -#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) - &errno, -#endif - strlcat, }; int plugin_load(const char* plugin, const void* parameter) |