{
par->format = 1;
#ifdef CONFIG_FB_SCALING_OSD
- dstoffset = ((ypos_virtual*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*2;
+ dstoffset = (((ypos_virtual-2*var->yres)*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*4;
ipp_req.src0.fmt = IPP_RGB_565;
ipp_req.dst0.fmt = IPP_RGB_565;
#endif
{
par->format = 1;
#ifdef CONFIG_FB_SCALING_OSD
- dstoffset = ((ypos_virtual*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*2;
+ dstoffset = (((ypos_virtual-2*var->yres)*screen->y_res/var->yres) *screen->x_res + (xpos_virtual*screen->x_res)/var->xres )*4;
ipp_req.src0.fmt = IPP_RGB_565;
ipp_req.dst0.fmt = IPP_RGB_565;
#endif
par->par_seted = 0;
par->addr_seted = 0;
win1_blank(FB_BLANK_NORMAL, info);
- if(inf->cur_screen->type != SCREEN_HDMI)
+ //if(inf->cur_screen->type != SCREEN_HDMI)
fb0_set_par(inf->fb0);
// unmap memory