changeset 240:aaebdac6a555

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 10 Sep 2018 11:51:40 +0300
parents f6565b8c3691
children 9b715f7489b2
files exporters.pde
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/exporters.pde	Mon Sep 10 11:31:44 2018 +0300
+++ b/exporters.pde	Mon Sep 10 11:51:40 2018 +0300
@@ -415,12 +415,13 @@
         for (x = 0; x < 32; x++)
         for (y2 = 0; y2 < 8; y2++)
         {
-            head = 7 + x * 8 + y * (32 * 8) + y2;
-            ad = 1024 + x * 8 + y * (256 * 8) + y2 * 256;
-            mpCopyByte(fdata, ad, head);
+            mpCopyByte(fdata,
+                1024 + x * 8 + y * (256 * 8) + y2 * 256,
+                7 + x * 8 + y * (32 * 8) + y2);
 
-            p1 = fdata[(8199) + x * 8 + ((y * 8 * 32) + y2)] & 0x0f;
-            p2 = (fdata[(8199) + x * 8 + ((y * 8 * 32) + y2)] >> 4) & 0x0f;
+            ad = 8199 + x * 8 + (y * 8 * 32) + y2;
+            p1 = fdata[ad] & 0x0f;
+            p2 = (fdata[ad] >> 4) & 0x0f;
 
             if (p1 == 0)
                 p1 = 1;