# HG changeset patch # User Matti Hamalainen # Date 1530968568 -10800 # Node ID 050a1ca8b106919f27647647deb815e2a6ab478c # Parent 44a07b1c620d10f2d51fb645e8460780e27f7e57 Cleanups. diff -r 44a07b1c620d -r 050a1ca8b106 events.pde --- a/events.pde Sat Jul 07 03:22:38 2018 +0300 +++ b/events.pde Sat Jul 07 16:02:48 2018 +0300 @@ -1,6 +1,7 @@ //collects mouse/key events and directly related command parsing -boolean insidewindow(int x, int y) { +boolean insidewindow(int x, int y) +{ // XXX is this correct? return (x > width - g_hedge || y > height - g_vedge); } @@ -800,7 +801,9 @@ g_iconmode = 1; } } - if (g_data[int('l')] == 1) { + + if (g_data[int('l')] == 1) + { g_data[int('l')] = 0; mpLoadFileSelector("Multipaint image", ".mp", @@ -825,7 +828,9 @@ message("ERROR!"); }); } - if (g_data[int('s')] == 1) { + + if (g_data[int('s')] == 1) + { g_data[int('s')] = 0; String fname = filename +"_"+ (g_spare ? "spare" : "main") +".mp"; @@ -849,7 +854,8 @@ */ } - if (g_data[int('A')] == 1) { + if (g_data[int('A')] == 1) + { g_data[int('A')] = 0; message("Executable|export"); @@ -861,7 +867,8 @@ message("COULD NOT|EXPORT"); } - if (g_data[int('w')] == 1) { + if (g_data[int('w')] == 1) + { g_data[int('w')] = 0; if (g_formatext != "") { diff -r 44a07b1c620d -r 050a1ca8b106 multipaint.pde --- a/multipaint.pde Sat Jul 07 03:22:38 2018 +0300 +++ b/multipaint.pde Sat Jul 07 16:02:48 2018 +0300 @@ -381,7 +381,6 @@ refreshpalette(); refresh(); g_boxreconstruct = 2; - message("Image|loaded"); selectcolor(0, lefth); selectcolor(1, righth); return 0;