From 04553f39b81db2cf07c32a94665c7ab65a420a5c Mon Sep 17 00:00:00 2001 From: Philip J Freeman Date: Mon, 2 May 2022 23:10:42 -0700 Subject: modules/pixbounce: add Ignignokt & Err pixmaps --- src/modules/pixbounce/pixbounce.c | 87 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 84 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/pixbounce/pixbounce.c b/src/modules/pixbounce/pixbounce.c index 26b5fb9..a66fb78 100644 --- a/src/modules/pixbounce/pixbounce.c +++ b/src/modules/pixbounce/pixbounce.c @@ -15,7 +15,9 @@ typedef enum pixbounce_pixmaps_t { PIXBOUNCE_PIXMAP_CROSSHAIRS, PIXBOUNCE_PIXMAP_NO, PIXBOUNCE_PIXMAP_CIRCLES, - PIXBOUNCE_PIXMAP_QR_TIL + PIXBOUNCE_PIXMAP_QR_TIL, + PIXBOUNCE_PIXMAP_IGNIGNOKT, + PIXBOUNCE_PIXMAP_ERR } pixbounce_pixmaps_t; typedef struct pixbounce_setup_t { @@ -31,10 +33,10 @@ static pixbounce_setup_t pixbounce_default_setup = { typedef struct pixbounce_pixmap_t { int width, height; - int pix_map[25*25]; + int pix_map[34*35]; } pixbounce_pixmap_t; -int num_pix = 5; +int num_pix = 7; pixbounce_pixmap_t pixbounce_pixmap[] = { { 16, 16, @@ -146,6 +148,79 @@ pixbounce_pixmap_t pixbounce_pixmap[] = { 1,1,1,1,1,1,1,0,0,0,1,1,1,0,0,1,1,0,1,0,0,1,0,0,1 }, }, + { 34, 30, + { + 0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,1,1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,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0 + }, + }, }; @@ -268,6 +343,8 @@ int pixbounce_setup(const til_settings_t *settings, til_setting_t **res_setting, "no", "circles", "qr_til", + "ignignokt", + "err", NULL }; @@ -322,6 +399,10 @@ int pixbounce_setup(const til_settings_t *settings, til_setting_t **res_setting, setup->pixmap = PIXBOUNCE_PIXMAP_CIRCLES; } else if (!strcasecmp(pixmap, "qr_til")) { setup->pixmap = PIXBOUNCE_PIXMAP_QR_TIL; + } else if (!strcasecmp(pixmap, "ignignokt")) { + setup->pixmap = PIXBOUNCE_PIXMAP_IGNIGNOKT; + } else if (!strcasecmp(pixmap, "err")) { + setup->pixmap = PIXBOUNCE_PIXMAP_ERR; } else { til_setup_free(&setup->til_setup); -- cgit v1.2.3