Lines Matching refs:dim
111 grf_alloc_view(dmode_t *d, dimen_t *dim, u_char depth)
114 d = get_best_display_mode(dim, depth, NULL);
116 return ((d->grfabs_funcs->alloc_view)(d, dim, depth));
121 grf_get_best_mode(dimen_t *dim, u_char depth)
123 return (get_best_display_mode(dim, depth, NULL));
183 get_best_display_mode(dimen_t *dim, int depth, dmode_t *curr_mode)
195 dx = abs(dm->size.width - dim->width);
196 dy = abs(dm->size.height - dim->height);
217 dx = abs(curr_mode->size.width - dim->width);
218 dy = abs(curr_mode->size.height - dim->height);