diff exporters.pde @ 11:c1667eb54808

Cosmetics and indentation.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jul 2018 09:03:08 +0300
parents f97ee354db2a
children a0a00f80b042
line wrap: on
line diff
--- a/exporters.pde	Wed Jul 04 08:57:43 2018 +0300
+++ b/exporters.pde	Wed Jul 04 09:03:08 2018 +0300
@@ -381,14 +381,14 @@
 }
 
 void pushbyte(int ad, int head) {
-    g_map[ad] = byte((g_template[head] & 128) >> 7);
+    g_map[ad    ] = byte((g_template[head] & 128) >> 7);
     g_map[ad + 1] = byte((g_template[head] & 64) >> 6);
     g_map[ad + 2] = byte((g_template[head] & 32) >> 5);
     g_map[ad + 3] = byte((g_template[head] & 16) >> 4);
     g_map[ad + 4] = byte((g_template[head] & 8) >> 3);
     g_map[ad + 5] = byte((g_template[head] & 4) >> 2);
     g_map[ad + 6] = byte((g_template[head] & 2) >> 1);
-    g_map[ad + 7] = byte(g_template[head] & 1);
+    g_map[ad + 7] = byte( g_template[head] & 1);
 }
 
 void format_import(String fname) {
@@ -566,14 +566,15 @@
                     p1 = g_template[0x1f42 + x + y * 40] & 0x0f;
                     p2 = (g_template[0x1f42 + x + y * 40] >> 4) & 0x0f;
                     p3 = g_template[0x233a + x + y * 40] & 0x0f;
+
                     g_map[65536 + x + y * 40] = byte(p1);
                     g_map[65536 + x + y * 40 + 1000] = byte(p2);
                     g_map[65536 + x + y * 40 + 2000] = byte(p3);
                 }
             }
         }
-        g_map[0] = byte(g_template[0x232a] & 15); //bord
-        g_map[1] = byte(g_template[0x232b] & 15); //baku
+        g_map[0] = byte(g_template[0x232a] & 0x0f); //bord
+        g_map[1] = byte(g_template[0x232b] & 0x0f); //baku
     }
 
     if (machine == MSX) { // sc2
@@ -2050,6 +2051,7 @@
         g_expname = "";
         g_formatname = "";
         g_formatextension = "";
+
         X = 320;
         Y = 200;
         g_multic = 2;
@@ -2064,6 +2066,7 @@
         g_expname = "";
         g_formatname = "";
         g_formatextension = "";
+
         X = 128;
         Y = 128;
         g_farge = 15;
@@ -2092,6 +2095,7 @@
         g_expname = "";
         g_formatname = "";
         g_formatextension = "";
+
         X = 256;
         Y = 192;
         g_farge = 15;