{
if(inf->num_fb >= 2)
{
- info2 = inf->fb[2];
+ info2 = inf->fb[inf->num_fb>>1];
dev_drv1 = (struct rk_lcdc_device_driver * )info2->par;
par2 = dev_drv1->layer_par[layer_id];
par2->y_offset = par->y_offset;
{
if(inf->num_fb >= 2)
{
- info2 = inf->fb[2];
+ info2 = inf->fb[inf->num_fb>>1];
dev_drv1 = (struct rk_lcdc_device_driver * )info2->par;
}
}
}
}
+ else
+ {
+ if(enable)
+ {
+ memcpy(dev_drv->cur_screen,screen,sizeof(rk_screen ));
+ }
+ }
layer_id = dev_drv->fb_get_layer(dev_drv,info->fix.id);
char name[6];
int i;
- printk("%s>>scale_x:%x>>scale_y:%d\n",__func__,scale_x,scale_y);
sprintf(name, "lcdc%d",lcdc_id);
for(i = 0; i < inf->num_lcdc; i++)
{
fbi->fix.mmio_len = res->end - res->start + 1;
#endif
break;
- case 2:
+ case 3:
#if !defined(CONFIG_THREE_FB_BUFFER)
res = platform_get_resource_byname(g_fb_pdev, IORESOURCE_MEM, "fb2 buf");
if (res == NULL)