16bpp test_pattern()
PATCH 1/1 16bpp test_pattern()
Hello,
this little patch adds 16bpp support to test_pattern() function.
Ciao,
Rodolfo
Signature · 5 lines
GNU/Linux Solutions e-mail: giometti at enneenne.com Linux Device Driver giometti at gnudd.com Embedded Systems giometti at linux.it UNIX programming phone: +39 349 2432127 -------------- next part --------------
common/lcd.c +4 -0
@@ -317,7 +317,11 @@ static void test_pattern (void)ushort v_step = (v_max +N_BLK_VERT -1 ) /N_BLK_VERT ;ushort h_step = (h_max +N_BLK_HOR -1 ) /N_BLK_HOR ;ushort v, h; +#if LCD_BPP ==LCD_COLOR16 +ushort *pix = (ushort *)lcd_base; +#else uchar *pix = (uchar *)lcd_base; +#endif printf ("[LCD] Test Pattern: %d x %d [%d x %d]\n" , h_max, v_max, h_step, v_step);