summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/display_text.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/display_text.h')
-rw-r--r--apps/plugins/lib/display_text.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/lib/display_text.h b/apps/plugins/lib/display_text.h
index 9f21d236ea..39b5f76a14 100644
--- a/apps/plugins/lib/display_text.h
+++ b/apps/plugins/lib/display_text.h
@@ -24,9 +24,9 @@
24 * basic usage: 24 * basic usage:
25 * #define WORDS (sizeof text / sizeof (char*)) 25 * #define WORDS (sizeof text / sizeof (char*))
26 * char *text[] = {"normal", "centering", "red,underline"}; 26 * char *text[] = {"normal", "centering", "red,underline"};
27 * struct style_text formation[WORDS]={ 27 * struct style_text formation[]={
28 * [1] = { TEXT_CENTER }, 28 * { 1, TEXT_CENTER },
29 * [2] = { C_RED|TEXT_UNDERLINE }, 29 * { 2, C_RED|TEXT_UNDERLINE },
30 * }; 30 * };
31 * if (display_text(WORDS, text, formation, NULL)) 31 * if (display_text(WORDS, text, formation, NULL))
32 * return PLUGIN_USB_CONNECTED; 32 * return PLUGIN_USB_CONNECTED;
@@ -38,10 +38,11 @@ enum ecolor { STANDARD, C_YELLOW, C_RED, C_BLUE, C_GREEN , C_ORANGE };
38#define TEXT_UNDERLINE 0x0200 38#define TEXT_UNDERLINE 0x0200
39 39
40struct style_text { 40struct style_text {
41 unsigned short index;
41 unsigned short flags; 42 unsigned short flags;
42}; 43};
43 44
44/* style and vp_text is optional. 45/* style and vp_text are optional.
45 * return true if usb is connected. */ 46 * return true if usb is connected. */
46bool display_text(short words, char** text, struct style_text* style, 47bool display_text(short words, char** text, struct style_text* style,
47 struct viewport* vp_text); 48 struct viewport* vp_text);