/* This call looks only at xoffset, yoffset and the FB_VMODE_YWRAP flag in  */
static void ami_pan_var(struct fb_var_screeninfo *var)
/* This call looks only at xoffset, yoffset and the FB_VMODE_YWRAP flag in  */
static void ami_pan_var(struct fb_var_screeninfo *var)
{
	struct amifb_par *par = &currentpar;
	par->xoffset = var->xoffset;
	par->yoffset = var->yoffset;
	if (var->vmode & FB_VMODE_YWRAP)
		par->vmode |= FB_VMODE_YWRAP;
	else
		par->vmode &= ~FB_VMODE_YWRAP;
	do_vmode_pan = 0;
	ami_update_par();
	do_vmode_pan = 1;
}