From 77641d59a7ece60554da6cc1337d885786e5fc3f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sat, 17 Mar 2018 22:54:07 -0400 Subject: puzzles: add formatting to help viewer The help text is now processed to generate a style array to pass to the display_text library in addition to the text itself. The help text is still compressed using LZ4, and still fits on the c200v2. Change-Id: I7a3a664f90f67a1a018956c72d2b62d92b8ffd17 --- apps/plugins/puzzles/help.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'apps/plugins/puzzles/help.h') diff --git a/apps/plugins/puzzles/help.h b/apps/plugins/puzzles/help.h index e9580ad69a..a5d2cdaa80 100644 --- a/apps/plugins/puzzles/help.h +++ b/apps/plugins/puzzles/help.h @@ -1,4 +1,11 @@ -/* defined in help/ */ +#ifdef ROCKBOX +#include "lib/display_text.h" +#endif -extern const char help_text[], quick_help_text[]; -extern const unsigned short help_text_len, quick_help_text_len; +/* defined in help/ */ +extern const char help_text[]; +#ifdef ROCKBOX +extern const char quick_help_text[]; +extern const struct style_text help_text_style[]; +extern const unsigned short help_text_len, quick_help_text_len, help_text_words; +#endif -- cgit v1.2.3