changeset 132:e32cc01bdb23

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Aug 2018 14:35:13 +0300
parents 9d17f991f102
children f5c32f6470d0
files buffers.pde
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/buffers.pde	Sun Aug 05 10:44:45 2018 +0300
+++ b/buffers.pde	Sun Aug 05 14:35:13 2018 +0300
@@ -31,7 +31,8 @@
     if (g_uindex[g_spare] > UNDOSTEPS)
         g_uindex[g_spare] = 0;
 
-    if (g_uindex[g_spare] == g_ubottom[g_spare]) {
+    if (g_uindex[g_spare] == g_ubottom[g_spare])
+    {
         g_ubottom[g_spare]++;
         if (g_ubottom[g_spare] > UNDOSTEPS)
             g_ubottom[g_spare] = 0;
@@ -106,14 +107,17 @@
     // this achieves varieties of whole screen copying
     // needed for brush copy and pre-drawing the shapes when a
     // tool is active etc.
-    switch (di) {
+    switch (di)
+    {
         case 0:
             arrayCopy(g_map, g_rmap);
             break;
         case 1:
             arrayCopy(g_rmap, g_map);
-            for (int i = 0; i < 1024; i++) {
-                if (g_remdo[i] == 1) {
+            for (int i = 0; i < 1024; i++)
+            {
+                if (g_remdo[i] == 1)
+                {
                     g_remdo[i] = 0;
                     g_redo[i] = 0;
                 }
@@ -130,5 +134,3 @@
             break;
     }
 }
-
-