Lines Matching refs:view
1 /* $NetBSD: view.c,v 1.36 2025/01/27 21:20:25 andvar Exp $ */
33 /* The view major device is a placeholder device. It serves
41 __KERNEL_RCSID(0, "$NetBSD: view.c,v 1.36 2025/01/27 21:20:25 andvar Exp $");
57 #include "view.h"
104 printf("%d view%s configured\n", NVIEW, NVIEW > 1 ? "s" : "");
119 views[i].view = NULL;
150 if (vu->view) {
151 vu->view->display.x = vu->size.x;
152 vu->view->display.y = vu->size.y;
154 grf_display_view(vu->view);
156 vu->size.x = vu->view->display.x;
157 vu->size.y = vu->view->display.y;
164 * remove a view from our added list if it is marked as displaying
186 grf_remove_view(vu->view);
215 old = vu->view;
216 vu->view = new;
222 vu->mode = grf_get_display_mode(vu->view);
229 * another view display mark as not added or displayed
264 vu->view = grf_alloc_view(NULL, &size, vu->size.depth);
265 if (vu->view == NULL)
268 vu->size.x = vu->view->display.x;
269 vu->size.y = vu->view->display.y;
270 vu->size.width = vu->view->display.width;
271 vu->size.height = vu->view->display.height;
272 vu->size.depth = vu->view->bitmap->depth;
274 vu->mode = grf_get_display_mode(vu->view);
290 grf_free_view (vu->view);
292 vu->view = NULL;
325 memcpy(bm, vu->view->bitmap, sizeof(bmap_t));
362 if (vu->view == NULL || grf_get_colormap(vu->view, ucm))
387 && (vu->view == NULL || grf_use_colormap(vu->view, cm)))
403 bm = vu->view->bitmap;