mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
HD300 - tweak lcd_update() (4-5% speedup)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28797 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cddc042e99
commit
3eee12ed23
1 changed files with 8 additions and 9 deletions
|
|
@ -202,17 +202,16 @@ void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
|
||||||
void lcd_update(void) ICODE_ATTR;
|
void lcd_update(void) ICODE_ATTR;
|
||||||
void lcd_update(void)
|
void lcd_update(void)
|
||||||
{
|
{
|
||||||
int y;
|
|
||||||
|
/* Setup initial PAGE and COLUMN address
|
||||||
|
* the addressing circuit will take care of the rest
|
||||||
|
*/
|
||||||
|
lcd_write_command_ex(LCD_CNTL_PAGE, 0, -1);
|
||||||
|
lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
|
||||||
|
lcd_write_command(LCD_CNTL_DATA_WRITE);
|
||||||
|
|
||||||
/* Copy display bitmap to hardware */
|
/* Copy display bitmap to hardware */
|
||||||
for (y = 0; y < LCD_FBHEIGHT; y++)
|
lcd_write_data (&lcd_framebuffer[0][0], LCD_WIDTH*LCD_FBHEIGHT);
|
||||||
{
|
|
||||||
lcd_write_command_ex(LCD_CNTL_PAGE, y, -1);
|
|
||||||
lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
|
|
||||||
|
|
||||||
lcd_write_command(LCD_CNTL_DATA_WRITE);
|
|
||||||
lcd_write_data (lcd_framebuffer[y], LCD_WIDTH);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update a fraction of the display. */
|
/* Update a fraction of the display. */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue