1
0
Fork 0
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:
Michael Chicoine 2009-10-26 15:42:26 +00:00
parent b341f5d594
commit 10f46b3c8a
2 changed files with 2 additions and 2 deletions

View file

@ -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 */

View file

@ -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;
}