- Fixed: rt_Translate1col() had a couple of bugs.

SVN r774 (trunk)
This commit is contained in:
Randy Heit 2008-02-28 21:15:13 +00:00
parent db5938d22a
commit 965bfda5fe
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
February 28, 2008
- Fixed: rt_Translate1col() had a couple of bugs.
February 27, 2008
- Added assembly versions of rt_add4cols and rt_addclamp4cols.

View file

@ -250,12 +250,12 @@ void rt_Translate1col(const BYTE *translation, int hx, int yl, int yh)
c0 = source[24]; c1 = source[28];
b0 = translation[c0]; b1 = translation[c1];
source[28] = b0; source[28] = b1;
source[24] = b0; source[28] = b1;
source += 32;
}
// Finish by doing 1 row at a time.
for (count &= 7; count; --count, source++)
for (count &= 7; count; --count, source += 4)
{
source[0] = translation[source[0]];
}