540*960分辨率kernel logo显示不正常

在mediatek\external\boot_logo_updater\boot_logo_updater.c中按照下面的注释修改: 


#define ALIGN_TO(x, n) \ 
(((x) + ((n) - 1)) & ~((n) - 1)) //=============增加这个宏定义 


.... 
else if(0 == strncmp(MTK_LCM_PHYSICAL_ROTATION, "180", 3)) 

printf("[boot_logo_updater]180\n"); 


unsigned int height = vinfo.yres; 
unsigned int width = vinfo.xres; 
unsigned short *src = (unsigned short*)s + ((height - 1) * width); 
//unsigned short *src = (unsigned short*)s + ((height ) * width); 
unsigned int *dst = d; 
//UINT16 *pLine2 = (UINT16*)addr; 
for (j = 0; j < height; ++ j) 

for (k = 0; k < width; ++ k) 

src_rgb565 = *(src+width-k); 
*(dst+k) = RGB565_TO_ARGB8888(src_rgb565); 



for (k = width; k < x_virtual; ++ k) 

*(dst+k) = 0xFFFFFFFF; 



dst += ALIGN_TO(width,32); //=============修改这个地方 
src -= width; 


你可能感兴趣的:(540*960分辨率kernel logo显示不正常)