rk29_fb.c: hdmi_get_scale-->hdmi_get_fbscale
authorkfx <kfx@rock-chips.com>
Thu, 21 Jul 2011 07:34:40 +0000 (15:34 +0800)
committerkfx <kfx@rock-chips.com>
Thu, 21 Jul 2011 07:34:40 +0000 (15:34 +0800)
drivers/video/rk29_fb.c

index edd33d19f489e62cb71c9db6045256c658667a20..ec359950cfb26da33ff0eb874b3640c19f63cef1 100755 (executable)
@@ -936,7 +936,6 @@ int rk29_set_cursor(struct fb_info *info, struct fb_cursor *cursor)
     return 0;
 }
 #endif
-#ifdef CONFIG_FB_SCALING_OSD
 static int hdmi_get_fbscale(void)
 {
 #ifdef CONFIG_HDMI
@@ -945,7 +944,6 @@ static int hdmi_get_fbscale(void)
        return 100;
 #endif
 }
-#endif
 static void hdmi_set_fbscale(struct fb_info *info)
 {
 #ifdef CONFIG_HDMI
@@ -1170,8 +1168,8 @@ static int win1_set_par(struct fb_info *info)
         hdmi_set_fbscale(info);
     }else  if(((screen->x_res==1920) ))
        {
-       if(hdmi_get_scale() < 100)
-                       par->ypos -=screen->y_res * (100-hdmi_get_scale()) / 200;
+       if(hdmi_get_fbscale() < 100)
+                       par->ypos -=screen->y_res * (100-hdmi_get_fbscale()) / 200;
        }
     //u32 offset=0, addr=0, map_size=0, smem_len=0;
     addr=0;