Home | History | Annotate | Download | only in dev

Lines Matching defs:view

38  * For each virtual terminal a new screen (a grfabs view) is allocated.
39 * Also one more view is allocated for the mapped screen on demand.
44 #include "view.h"
275 view_t * view;
1001 maxcolor = (1 << scr->view->bitmap->depth) - 1;
1130 * Initialize (but not display) the view used for graphics.
1172 grf_display_view(adp->currentscreen->view);
1253 view_t * view;
1287 view = grf_alloc_view(NULL, &dimension, depth);
1288 if (view == NULL)
1305 scr->view = view;
1314 scr->widthbytes = view->bitmap->bytes_per_row;
1315 scr->linebytes = scr->widthbytes + view->bitmap->row_mod;
1348 scr->planes[i] = view->bitmap->plane[i];
1398 grf_display_view(scr->view);
1437 if (scr->view)
1438 grf_free_view(scr->view);
1439 scr->view = NULL;
1479 grf_display_view(scr->view);
1522 view_t * view;
1535 view = adp->gfxview;
1537 view = adp->currentscreen->view;
1542 grf_display_view(view);
1549 grf_remove_view(view);
1565 amidisplaycc_cmapioctl(view_t *view, u_long cmd, struct wsdisplay_cmap *cmap)
1603 return amidisplaycc_setcmap(view, &tmpcmap);
1607 err = amidisplaycc_getcmap(view, &tmpcmap);
1666 rc = amidisplaycc_getcmap(scr->view, &tmpcmap);
1677 rc = amidisplaycc_setcmap(scr->view, &tmpcmap);
1690 amidisplaycc_setcmap(view_t *view, struct wsdisplay_cmap *cmap)
1700 if (view == NULL)
1710 colors = (1 << view->bitmap->depth);
1727 err = grf_get_colormap(view, &cm);
1733 * We need to convert them to the number of bits the view
1769 * it to the view.
1772 err = grf_use_colormap(view, &cm);
1784 amidisplaycc_getcmap(view_t *view, struct wsdisplay_cmap *cmap)
1794 if (view == NULL)
1802 colors = (1 << view->bitmap->depth);
1814 err = grf_get_colormap(view, &cm);
1939 grf_display_view(amidisplaycc_consolescreen.view);
1946 /* Restore the correct view after done with console use */
1947 grf_display_view(amidisplaycc_consolescreen.device->currentscreen->view);