memcpy(dev_drv->cur_screen, screen, sizeof(struct rk_screen));
dev_drv->cur_screen->xsize = dev_drv->cur_screen->mode.xres;
dev_drv->cur_screen->ysize = dev_drv->cur_screen->mode.yres;
- dev_drv->cur_screen->x_mirror = dev_drv->rotate_mode & X_MIRROR;
- dev_drv->cur_screen->y_mirror = dev_drv->rotate_mode & Y_MIRROR;
+ dev_drv->cur_screen->x_mirror =
+ !!(dev_drv->rotate_mode & X_MIRROR);
+ dev_drv->cur_screen->y_mirror =
+ !!(dev_drv->rotate_mode & Y_MIRROR);
}
if (!dev_drv->uboot_logo || load_screen ||
ymirror = !!(rotate & Y_MIRROR);
dev_drv->cur_screen->x_mirror = xmirror;
dev_drv->cur_screen->y_mirror = ymirror;
+ dev_drv->rotate_mode = rotate;
mutex_lock(&dev_drv->output_lock);
mutex_lock(&dev_drv->win_config);
if (dev_drv->ops->extern_func)