forked from len0rd/rockbox
Fixed remove-line-bug.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@863 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
434c4c5725
commit
7844e67034
1 changed files with 4 additions and 4 deletions
|
|
@ -253,10 +253,10 @@ int check_lines(void)
|
|||
{
|
||||
lines++;
|
||||
for(i=y;i > 1;i--)
|
||||
for (x=0;x<max_x;x++)
|
||||
virtual[i*max_x] = virtual[((i-1)*max_x)];
|
||||
for (x=0;x<max_x;x++)
|
||||
virtual[max_x] = 0;
|
||||
for (x=0;x<max_x;x++)
|
||||
memcpy(&virtual[i*max_x], &virtual[((i-1)*max_x)], max_x);
|
||||
for (x=0;x<max_x;x++)
|
||||
memset (&virtual[max_x], 0, max_x);
|
||||
}
|
||||
}
|
||||
return lines;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue