forked from len0rd/rockbox
fix an off-by-one error in lcd_update_rect()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23359 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b341f5d594
commit
10f46b3c8a
2 changed files with 2 additions and 2 deletions
|
@ -564,7 +564,7 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
lcd_write_data(ptr, width);
|
||||
ptr += LCD_WIDTH;
|
||||
}
|
||||
while (--height > 0);
|
||||
while (--height >= 0);
|
||||
|
||||
lcd_busy = false;
|
||||
} /* lcd_update_rect */
|
||||
|
|
|
@ -411,7 +411,7 @@ void lcd_update_rect(int x, int y, int width, int height)
|
|||
lcd_write_data(ptr, width);
|
||||
ptr += LCD_WIDTH;
|
||||
}
|
||||
while (--height > 0);
|
||||
while (--height >= 0);
|
||||
lcd_busy = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue