MCPcopy Create free account
hub / github.com/F-Stack/f-stack / versatilefb_update_margins

Function versatilefb_update_margins

freebsd/arm/versatile/versatile_clcd.c:572–583  ·  view source on GitHub ↗

* Update videoadapter settings after changing resolution */

Source from the content-addressed store, hash-verified

570 * Update videoadapter settings after changing resolution
571 */
572static void
573versatilefb_update_margins(video_adapter_t *adp)
574{
575 struct video_adapter_softc *sc;
576 video_info_t *vi;
577
578 sc = (struct video_adapter_softc *)adp;
579 vi = &adp->va_info;
580
581 sc->xmargin = (sc->width - (vi->vi_width * vi->vi_cwidth)) / 2;
582 sc->ymargin = (sc->height - (vi->vi_height * vi->vi_cheight))/2;
583}
584
585static int
586versatilefb_configure(int flags)

Callers 1

versatile_clcdc_attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected