void draw_fb(int xlen)
{
int x, y;
unsigned short *dst;
unsigned int location;
unsigned short color = 0;
unsigned char r, g, b;
r = 8;
g = 0x20;
b = 0x15;
printk("++++++++++++++++show slider++++++++++++++\n");
for( y = 482; y < 503; y++ ) {
for( x = 0; x < xlen; x++ )
{
location = y*1600+x*2;
dst = g_screen_base + location;
if(x < (xlen-200))
*dst = 0x4415;
else
{
r = 0x8+(0x10-0x8)*(x-(xlen-200))/(200);
g = 0x20+(0x30-0x20)*(x-(xlen-200))/(200);
color = r<<11 | g<<5 | b;
*dst = color;
}
}
}
}
EXPORT_SYMBOL(draw_fb);
阅读(1780) | 评论(0) | 转发(1) |