Name

mac_var_to_vmode — convert var structure to MacOS vmode/cmode pair

Synopsis

int mac_var_to_vmode (const struct fb_var_screeninfo * var, int * vmode, int * cmode);

Arguments

var

frame buffer video mode structure

vmode

MacOS video mode

cmode

MacOS color mode

Description

Converts a frame buffer video mode structure to a MacOS vmode/cmode pair.

Returns negative errno on error, or zero for success.