changeset 31:3723a6fc767d

Initialize g_data, to be sure ..
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jul 2018 10:38:29 +0300
parents 2eda69cb8ac0
children d85b34f20c74
files multipaint.pde
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/multipaint.pde	Wed Jul 04 10:38:13 2018 +0300
+++ b/multipaint.pde	Wed Jul 04 10:38:29 2018 +0300
@@ -80,6 +80,10 @@
     int i, x, y;
 
     frameRate(40);
+
+    for (i = 0; i < g_data.length; i++)
+        g_data[i] = 0;
+
     g_magpix[0] = 3;
     g_magpix[1] = 8;
     g_magpix[2] = 16;