1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps
Paul Sauro ac03680df3 keyboard.c: Layout dynamically the morse cheat sheet (supports larger sysfonts)
The main usecase of this is so the morse cheat sheet does not look broken (with cut characters) when we are using a different/larger sysfont. All is adjusted automatically thanks to the SYSFONT_WIDTH and SYSFONT_HEIGHT constants.

Long pushs are now represented as vertical long bars, while short pushs are represented into short bars (centered in the middle). The long pushs bars are not larger anymore, so spacing is consistent everytime for all long+short order different combos thus looking cleaner and more readable.

The code was also a bit refactored to be more easily understandable in the future by using clear variable names to describe the magic values.

- Tested with mini2g: no regression, can still show all characters no problem within the limited screen space that is available on this device
- Tested with ipod6g by configuring the same default font as erosq (14-Rockboxmix) which is larger than the default sysfont: looks really good ! Way more readable than before
- Tested with 4gmono: no regression

Change-Id: Ida8b37ac7bd0bb5f0d314b5dea7657aa41bf2650
2025-02-13 20:37:13 -05:00
..
bitmaps Rename symbols of FiiO M3K Linux-based port 2021-02-27 23:53:28 +00:00
gui screen_access add set_drawinfo 2025-02-08 00:49:28 -05:00
hosted/android [FixRed] android yesno dialog 2023-10-01 12:21:54 -04:00
iap Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
keymaps agptekrocker: Fix manual build due to missing Quickscreen enter/exit 2024-07-12 08:52:24 -04:00
lang lang: Correct voice string for LANG_FONT_LOAD_ERROR 2025-02-13 20:04:42 -05:00
menus Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
plugins [Feature] shortcuts_view plugin remember last item and return to it on menu cancel 2025-01-21 22:10:46 -05:00
radio settings set_file() cleanup unused maxlen and check for file exist 2025-01-24 00:20:45 -05:00
recorder keyboard.c: Layout dynamically the morse cheat sheet (supports larger sysfonts) 2025-02-13 20:37:13 -05:00
abrepeat.c [Cleanup] abrepeat.c 2024-06-20 11:14:27 -04:00
abrepeat.h [Cleanup] abrepeat.c 2024-06-20 11:14:27 -04:00
action.c [BugFix] YesNo screen wait for button release on exit 2025-01-17 00:42:25 -05:00
action.h apps: Move action_cur_t and action_last_t to action.c 2024-04-21 20:37:26 -04:00
alarm_menu.c voice: Revert one of the changes made in b6053c4d54 2024-05-19 21:05:43 -04:00
alarm_menu.h
appevents.h
applimits.h
apps.make build: add 'lto' to features.txt if built with it 2024-11-30 13:49:42 -05:00
audio_path.c nwza860: fix simulator build 2020-10-19 03:39:33 +00:00
audio_thread.c [Feature] Persist pitch settings through reboots part deux 2025-01-19 00:29:47 -05:00
audio_thread.h
beep.c
bookmark.c [Feature] bookmark.ignore to selectively ignore or include directories 2025-01-18 00:21:42 -05:00
bookmark.h Fix return to root after selecting items from playlist viewer 2022-11-19 10:01:23 +01:00
buffering.c metadata: mp3: Support unsync embedded jpeg album art 2025-01-16 10:08:41 -05:00
buffering.h buffering: remove bufgettail/bufcuttail 2022-04-20 16:51:49 -04:00
codec_thread.c metadata.c don't store encoder filename for all the decoders 2024-12-24 01:47:18 -05:00
codec_thread.h
codecs.c plugins: Simplify plugin/codec API versioning 2023-03-21 16:23:54 -04:00
core_asmdefs.c
core_keymap.c add INIT_ATTR to dircache_load and core_load_key_remap 2024-11-26 22:13:43 -05:00
core_keymap.h key remap: simplify and use movable allocations 2022-09-25 11:05:59 +01:00
cuesheet.c unicode: add utf16decode with utf8 buffer size check 2024-12-15 15:44:57 -05:00
cuesheet.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
debug_menu.c [bugfix] run_debug_screen case-insensitive matching 2025-01-27 10:27:25 -05:00
debug_menu.h
enc_config.c Settings: Rename INT/BOOL setting type enum to RB_INT/RB_BOOL 2023-09-22 10:00:46 -04:00
enc_config.h
features.txt build: add 'lto' to features.txt if built with it 2024-11-30 13:49:42 -05:00
fileop.c misc: Eliminate redundant yes/no dialog functions 2025-01-15 14:10:17 -05:00
fileop.h [Cleanup] onplay.c fileop.c 2024-07-04 12:44:04 -04:00
filetree.c settings set_file() cleanup unused maxlen and check for file exist 2025-01-24 00:20:45 -05:00
filetree.h Replace "Reload After Saving" with option to remove queued tracks 2024-04-21 18:28:16 +02:00
filetypes.c Fix: read_color_theme_file needed beyond init 2024-11-24 00:42:50 +01:00
filetypes.h filetypes.c compress builtin filetypes 2024-11-19 07:12:41 -05:00
fracmul.h
keyboard.h [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. 2020-07-24 21:20:13 +00:00
language.c optimize language.c lang_english_to_id() 2024-12-30 23:17:57 -05:00
language.h lang: Support languages that speak the units before a numerical value 2023-05-22 10:30:13 -04:00
logfdisp.c misc.c open_pathfmt caller supplied buffer 2022-11-23 22:09:46 -05:00
logfdisp.h
main.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
menu.c Fix red in 43068ef270 2025-01-25 15:47:10 -05:00
menu.h menus remove reserved 'param' parameter 2022-12-17 04:24:37 -05:00
misc.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
misc.h misc: Eliminate redundant yes/no dialog functions 2025-01-15 14:10:17 -05:00
onplay.c [Feature] Persist pitch settings through reboots part deux 2025-01-19 00:29:47 -05:00
onplay.h Generate A-Z menus in the tagtree 2024-11-02 17:27:22 -04:00
open_plugin.c [Bugfix] OpenPlugin on multivolume targets 2025-01-15 12:27:39 -05:00
open_plugin.h open_plugin.c access open_plugin_entry through a function 2022-12-16 09:05:06 -05:00
pcmbuf.c [BugFix] Playback.c OOM with large voice file 2024-09-24 10:47:34 -04:00
pcmbuf.h [BugFix] Playback.c OOM with large voice file 2024-09-24 10:47:34 -04:00
playback.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
playback.h [Feature] playback logging from core 2025-01-13 00:45:09 -05:00
playlist.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
playlist.h playlist viewer: move on-disk playlist struct to playlist.c 2024-11-23 09:05:39 -05:00
playlist_catalog.c misc: Eliminate redundant yes/no dialog functions 2025-01-15 14:10:17 -05:00
playlist_catalog.h Suggest numbered filename when saving untitled playlist 2023-10-28 18:24:00 -04:00
playlist_menu.h
playlist_viewer.c playlist: eliminate error message disconnecting USB 2025-01-15 14:00:10 -05:00
playlist_viewer.h Playlist Catalogue: Restore selection in playlist 2022-11-26 17:20:06 +01:00
plugin.c : [bugfix,bugfix] ensure PREVIOUS tree_context dirfilter is restored on plugin exit 2025-01-23 19:50:48 -05:00
plugin.h [Feature] playback logging from core 2025-01-13 00:45:09 -05:00
rbcodec_helpers.c Remove buflib allocation names, part two 2023-01-13 10:32:54 +00:00
rbcodecconfig.h
rbcodecplatform.h
README
root_menu.c Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
root_menu.h Add open_plugin to core 2020-08-17 10:15:14 -04:00
screen_access.c screen_access add set_drawinfo 2025-02-08 00:49:28 -05:00
screen_access.h screen_access add set_drawinfo 2025-02-08 00:49:28 -05:00
screens.c add itoa(), replace snprintf("%d") calls 2025-02-03 01:23:49 -05:00
screens.h Show Track Info: Support fs tags in Playlist Viewer, Properties, and PictureFlow 2024-12-16 00:20:10 +01:00
settings.c add itoa(), replace snprintf("%d") calls 2025-02-03 01:23:49 -05:00
settings.h internals: VIRT_PTR correction for PP SoCs 2025-02-13 08:37:32 -05:00
settings_list.c add itoa(), replace snprintf("%d") calls 2025-02-03 01:23:49 -05:00
settings_list.h Remove NVRAM infavor of a separate cfg file 2025-01-21 00:04:32 -05:00
shortcuts.c [Feature] Set values of settings from shortcuts 2025-01-25 15:13:13 -05:00
shortcuts.h [Feature] Set values of settings from shortcuts 2025-01-25 15:13:13 -05:00
sound_menu.h
SOURCES [Feature] onplay.c show file progress 2024-06-30 02:09:40 -04:00
status.c [2/4] get rid of HAVE_LCD_CHARCELLS 2020-07-24 21:20:13 +00:00
status.h Add a comment about the ordering of 'enum playmode' 2022-11-23 10:08:49 -05:00
tagcache.c tagtree: "By First Letter" : fix numerical entry + add a "Special character" entry 2025-02-08 12:14:32 -05:00
tagcache.h tagtree: "By First Letter" : fix numerical entry + add a "Special character" entry 2025-02-08 12:14:32 -05:00
tagnavi.config tagnavi.config: Add "Album Artists by First Letter" 2025-02-08 12:14:32 -05:00
tagtree.c [BugFix] TagNav Custom Menu Entry Wrong title, crashing menu 2025-02-11 01:00:28 -05:00
tagtree.h Reworks to the shuffle system to improve performance and allow fast shuffling from a big library (but this work for all database views) 2024-08-31 10:44:20 -04:00
talk.c [Bugfix] Enable Progressive loading for talk clips on devices <= 8MB 2024-09-25 00:54:10 -04:00
talk.h talk: Voice the volume name when browsing and when voicing full paths 2024-07-28 16:54:33 -04:00
tree.c tree.c optimize bookmark_play() 2025-02-12 02:29:30 -05:00
tree.h Reworks to the shuffle system to improve performance and allow fast shuffling from a big library (but this work for all database views) 2024-08-31 10:44:20 -04:00
usb_keymaps.c Document intentional fallthroughs + fix harmless unintended ones 2021-08-04 18:59:46 +00:00
usb_keymaps.h
voice_thread.c Remove buflib allocation names, part two 2023-01-13 10:32:54 +00:00
voice_thread.h voice: Allow voice prompt volume to be configurable 2021-03-07 12:51:36 +00:00

For general information see: docs/README
For API information see: docs/API