Lines Matching refs:nice
1023 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
1026 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
1029 while (*nice) in text_map()
1030 *p++ = *nice++; in text_map()
1034 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
1037 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info()
1039 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
1042 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
1043 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
1045 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
1046 text_map(map, xdiv, nice, a->p1.y / ydiv, in map_1d_info()
1048 } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { in map_1d_info()
1049 text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); in map_1d_info()
1053 static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, in map_2d_info() argument
1056 sprintf(nice, "(%d*%d)", tcm_awidth(*a), tcm_aheight(*a)); in map_2d_info()
1057 if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) in map_2d_info()
1058 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, in map_2d_info()
1072 char nice[128]; in tiler_map_show() local
1113 map_2d_info(map, xdiv, ydiv, nice, in tiler_map_show()
1130 map_1d_info(map, xdiv, ydiv, nice, in tiler_map_show()