• Home
  • Raw
  • Download

Lines Matching refs:xdiv

852 static void fill_map(char **map, int xdiv, int ydiv, struct tcm_area *a,  in fill_map()  argument
857 for (x = a->p0.x / xdiv; x <= a->p1.x / xdiv; x++) in fill_map()
862 static void fill_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p, in fill_map_pt() argument
865 map[p->y / ydiv][p->x / xdiv] = c; in fill_map_pt()
868 static char read_map_pt(char **map, int xdiv, int ydiv, struct tcm_pt *p) in read_map_pt() argument
870 return map[p->y / ydiv][p->x / xdiv]; in read_map_pt()
873 static int map_width(int xdiv, int x0, int x1) in map_width() argument
875 return (x1 / xdiv) - (x0 / xdiv) + 1; in map_width()
878 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument
880 char *p = map[yd] + (x0 / xdiv); in text_map()
881 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map()
889 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument
894 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info()
897 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info()
898 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info()
899 a->p0.x + xdiv, 256 - 1); in map_1d_info()
900 else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) in map_1d_info()
901 text_map(map, xdiv, nice, a->p1.y / ydiv, in map_1d_info()
902 0, a->p1.y - xdiv); in map_1d_info()
903 } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { in map_1d_info()
904 text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); in map_1d_info()
908 static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, in map_2d_info() argument
912 if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) in map_2d_info()
913 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, in map_2d_info()
919 int xdiv = 2, ydiv = 1; in tiler_map_show() local
940 w_adj = omap_dmm->container_width / xdiv; in tiler_map_show()
962 fill_map(map, xdiv, ydiv, &block->area, in tiler_map_show()
968 map_2d_info(map, xdiv, ydiv, nice, in tiler_map_show()
971 bool start = read_map_pt(map, xdiv, in tiler_map_show()
973 bool end = read_map_pt(map, xdiv, ydiv, in tiler_map_show()
977 fill_map(map, xdiv, ydiv, &a, in tiler_map_show()
979 fill_map_pt(map, xdiv, ydiv, in tiler_map_show()
982 fill_map_pt(map, xdiv, ydiv, in tiler_map_show()
985 map_1d_info(map, xdiv, ydiv, nice, in tiler_map_show()