# HG changeset patch # User Matti Hamalainen # Date 1533468913 -10800 # Node ID e32cc01bdb239ecd31728d071e63786da33a0d30 # Parent 9d17f991f10261fec3328d1a3c934c7df5a03c64 Cleanup. diff -r 9d17f991f102 -r e32cc01bdb23 buffers.pde --- 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; } } - -