Mercurial > hg > forks > multipaint-js
changeset 118:050a1ca8b106
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Jul 2018 16:02:48 +0300 |
parents | 44a07b1c620d |
children | ecc0e5148b47 |
files | events.pde multipaint.pde |
diffstat | 2 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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 != "") {