forked from len0rd/rockbox
reindented
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1647 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2012acf0a8
commit
8761231ee1
1 changed files with 8 additions and 4 deletions
|
|
@ -912,11 +912,15 @@ void lcd_invertrect (int x, int y, int nx, int ny)
|
||||||
{
|
{
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
if (x>LCD_WIDTH) return;
|
if (x>LCD_WIDTH)
|
||||||
if (y>LCD_HEIGHT) return;
|
return;
|
||||||
|
if (y>LCD_HEIGHT)
|
||||||
|
return;
|
||||||
|
|
||||||
if (x+nx>LCD_WIDTH) nx=LCD_WIDTH-x;
|
if (x+nx>LCD_WIDTH)
|
||||||
if (y+ny>LCD_HEIGHT) ny=LCD_HEIGHT-y;
|
nx=LCD_WIDTH-x;
|
||||||
|
if (y+ny>LCD_HEIGHT)
|
||||||
|
ny=LCD_HEIGHT-y;
|
||||||
|
|
||||||
for (i = 0; i < nx; i++)
|
for (i = 0; i < nx; i++)
|
||||||
for (j = 0; j < ny; j++)
|
for (j = 0; j < ny; j++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue