shithub: rott

Download patch

ref: 6072851dbc1847d4737ae696c153c0de6495cb9e
parent: dbcde4dcc2915cb325c7d62d2c786fa17df84950
author: levesqu8 <levesqu8@msu.edu>
date: Thu Jan 4 10:37:55 EST 2018

fixed rotation for 1024x768

--- a/rott/rt_draw.c
+++ b/rott/rt_draw.c
@@ -6010,6 +6010,21 @@
         }
 
     }
+    else if (iGLOBAL_SCREENWIDTH == 1024) {
+	while (count--) {
+            eax = edx >> 16;
+            if (eax < (256*3.1) && (ecx >> 16) < (512*2.0)) {
+                eax = (eax << 10) | ((ecx << 6) >> (32-10));
+            } else {
+		eax = 0;
+            }
+			
+            *dest++ = src[eax];
+			
+            edx += mr_xstep;
+		ecx += mr_ystep;
+        }
+    }
 }
 
 void DrawMaskedRotRow(int count, byte * dest, byte * src)