FreeBSD/sys/arm/broadcom/bcm2835/bcm2835_fb.c
/*
 * Update videoadapter settings after changing resolution
 */
Update videoadapter settings after changing resolution
Update videoadapter settings after changing resolution
static void
bcmfb_update_margins(video_adapter_t *adp)
{
	struct bcmsc_softc *sc;
	video_info_t *vi;
	sc = (struct bcmsc_softc *)adp;
	vi = &adp->va_info;
	sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2;
	sc->ymargin = (sc->height - (vi->vi_height * vi->vi_cheight)) / 2;
}
static void bcmfb_update_margins ( video_adapter_t * adp ) { struct bcmsc_softc * sc ; video_info_t * vi ; sc = ( struct bcmsc_softc * ) adp ; vi = & adp -> va_info ; sc -> xmargin = ( sc -> width - ( vi -> vi_width * vi -> vi_cwidth ) ) / 2 ; sc -> ymargin = ( sc -> height - ( vi -> vi_height * vi -> vi_cheight ) ) / 2 ; }
Update videoadapter settings after changing resolution
Update videoadapter settings after changing resolution