Lines Matching refs:nice
1035 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
1038 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
1041 while (*nice) in text_map()
1042 *p++ = *nice++; in text_map()
1046 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
1049 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info()
1051 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
1054 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
1055 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
1057 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
1058 text_map(map, xdiv, nice, a->p1.y / ydiv, in map_1d_info()
1060 } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { in map_1d_info()
1061 text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); in map_1d_info()
1065 static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, in map_2d_info() argument
1068 sprintf(nice, "(%d*%d)", tcm_awidth(*a), tcm_aheight(*a)); in map_2d_info()
1069 if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) in map_2d_info()
1070 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, in map_2d_info()
1084 char nice[128]; in tiler_map_show() local
1125 map_2d_info(map, xdiv, ydiv, nice, in tiler_map_show()
1142 map_1d_info(map, xdiv, ydiv, nice, in tiler_map_show()