From 11cf2a361a56fbc315c08ee7adc025d7693c8318 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 30 Oct 2025 16:46:19 -0400 Subject: Update readme and deps Signed-off-by: Andrew Opalach --- taro/daemon.c | 2 +- taro/ui.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'taro') diff --git a/taro/daemon.c b/taro/daemon.c index bd993bc..d701ae6 100644 --- a/taro/daemon.c +++ b/taro/daemon.c @@ -62,7 +62,7 @@ static s32 parse_and_set_props(str *selection, str *wallpaper_id, bool *is_packa { u32 index = al_str_find(selection, '|'); u32 rindex = al_str_rfind(selection, '|'); - if (index == AL_STR_NPOS || rindex == AL_STR_NPOS || index == rindex) { + if (index == AL_STR_NO_POS || rindex == AL_STR_NO_POS || index == rindex) { return -1; } diff --git a/taro/ui.c b/taro/ui.c index 2b1de3b..25aa844 100644 --- a/taro/ui.c +++ b/taro/ui.c @@ -21,8 +21,8 @@ #define UI_RESERVE_WIDTH 33 #define UI_RESERVE_HEIGHT 2 -#define GRID_TILE_WIDTH 18 // img = 16 -#define GRID_TILE_HEIGHT 9 // img = 8 +#define GRID_TILE_WIDTH 22 // img = 20 +#define GRID_TILE_HEIGHT 11 // img = 10 #define GRID_TEXT_WIDTH (GRID_TILE_WIDTH - 4) @@ -144,7 +144,7 @@ static s32 get_entry_from_config(struct ui *u) str config; if (nn_file_open_and_read_wholly(&u->m.selection_path, &config, false)) { u32 index = al_str_find(&config, '|'); - if (index != AL_STR_NPOS && index > 2) { + if (index != AL_STR_NO_POS && index > 2) { str id = al_str_substr(&config, 0, index - 2); struct entry *e; al_array_foreach_ptr(u->db.entries, i, e) { @@ -323,7 +323,7 @@ struct image *get_image_from_pool(struct image_pool *pool, str *path) } u32 index = al_str_rfind(path, '.'); - bool is_gif = index != AL_STR_NPOS && al_str_cmp(path, &al_str_c(".gif"), index, 4) == 0; + bool is_gif = index != AL_STR_NO_POS && al_str_cmp(path, &al_str_c(".gif"), index, 4) == 0; char *c_str = al_str_to_c_str(path); struct ncvisual *v = ncvisual_from_file(c_str); al_free(c_str); -- cgit v1.2.3-101-g0448