mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 01:22:38 -05:00
Speed up LCD driver on Ingenic Jz4740 by doing some sort of partial LCD updates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20997 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8bcb4a6971
commit
9c2ebdf724
1 changed files with 3 additions and 5 deletions
|
|
@ -71,13 +71,11 @@ bool lcd_active(void)
|
||||||
/* Update a fraction of the display. */
|
/* Update a fraction of the display. */
|
||||||
void lcd_update_rect(int x, int y, int width, int height)
|
void lcd_update_rect(int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
/* Currently only do full updates.
|
/* Currently only do updates with full LCD width.
|
||||||
* DMA can't handle partial updates and CPU is too slow compared
|
* DMA can't handle full partial updates and CPU is too slow compared
|
||||||
* to full DMA updates */
|
* to DMA updates */
|
||||||
x = 0;
|
x = 0;
|
||||||
y = 0;
|
|
||||||
width = LCD_WIDTH;
|
width = LCD_WIDTH;
|
||||||
height = LCD_HEIGHT;
|
|
||||||
|
|
||||||
mutex_lock(&lcd_mtx);
|
mutex_lock(&lcd_mtx);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue