iPod Classic: Fix YUV blitting. Mpegplayer works now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29460 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2011-02-28 11:54:28 +00:00
parent 156b0bc614
commit 06c1757138
3 changed files with 10 additions and 5 deletions

View file

@ -19,6 +19,7 @@
*
****************************************************************************/
#define FORCE_FIFO_WAIT
/****************************************************************************
* #define FORCE_FIFO_WAIT
*

View file

@ -259,12 +259,16 @@ void lcd_blit_yuv(unsigned char * const src[3],
s5l_lcd_write_cmd(R_WRITE_DATA_TO_GRAM);
} else {
s5l_lcd_write_cmd(R_COLUMN_ADDR_SET);
s5l_lcd_write_data(x0); /* Start column */
s5l_lcd_write_data(x1); /* End column */
s5l_lcd_write_data(x0 >> 8);
s5l_lcd_write_data(x0 & 0xff);
s5l_lcd_write_data(x1 >> 8);
s5l_lcd_write_data(x1 & 0xff);
s5l_lcd_write_cmd(R_ROW_ADDR_SET);
s5l_lcd_write_data(y0); /* Start row */
s5l_lcd_write_data(y1); /* End row */
s5l_lcd_write_data(y0 >> 8);
s5l_lcd_write_data(y0 & 0xff);
s5l_lcd_write_data(y1 >> 8);
s5l_lcd_write_data(y1 & 0xff);
s5l_lcd_write_cmd(R_MEMORY_WRITE);
}