summaryrefslogtreecommitdiff
path: root/taro
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-30 16:46:19 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-30 17:05:24 -0400
commit11cf2a361a56fbc315c08ee7adc025d7693c8318 (patch)
treec1874c8cd50a3e6a04f310a0f3477a9902b4a892 /taro
parentca800f761080289735561154f02eddb21198a876 (diff)
downloadmauri-11cf2a361a56fbc315c08ee7adc025d7693c8318.tar.gz
mauri-11cf2a361a56fbc315c08ee7adc025d7693c8318.tar.bz2
mauri-11cf2a361a56fbc315c08ee7adc025d7693c8318.zip
Update readme and deps
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'taro')
-rw-r--r--taro/daemon.c2
-rw-r--r--taro/ui.c8
2 files changed, 5 insertions, 5 deletions
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);