From 965bfda5feedc48eb4b09fffd6ca2e2d3eed3a5f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 28 Feb 2008 21:15:13 +0000 Subject: [PATCH] - Fixed: rt_Translate1col() had a couple of bugs. SVN r774 (trunk) --- docs/rh-log.txt | 3 +++ src/r_drawt.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index fe68a28da7..62db7c87c8 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -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. diff --git a/src/r_drawt.cpp b/src/r_drawt.cpp index 1a36c5fdb6..e0a3711a14 100644 --- a/src/r_drawt.cpp +++ b/src/r_drawt.cpp @@ -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]]; }