You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
442 B

  1. #include <stdio.h>
  2. #include <stdbool.h>
  3. #include "lily58.h"
  4. char mode_icon[24];
  5. const char *read_mode_icon(bool swap) {
  6. static char logo[][2][3] = {{{0x95, 0x96, 0}, {0xb5, 0xb6, 0}}, {{0x97, 0x98, 0}, {0xb7, 0xb8, 0}}};
  7. if (swap == false) {
  8. snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[0][0], logo[0][1]);
  9. } else {
  10. snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[1][0], logo[1][1]);
  11. }
  12. return mode_icon;
  13. }