Mercurial > hg > forks > multipaint-js
changeset 117:44a07b1c620d
Rename 'bool' -> 'boolean'.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 07 Jul 2018 03:22:38 +0300 |
parents | 1180249d713d |
children | 050a1ca8b106 |
files | draw_smart.pde exporters.pde multipaint.pde |
diffstat | 3 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/draw_smart.pde Fri Jul 06 19:43:56 2018 +0300 +++ b/draw_smart.pde Sat Jul 07 03:22:38 2018 +0300 @@ -117,7 +117,7 @@ } -bool floodfill_mc_plop(int npar, int molox, int xc, int yc) +boolean floodfill_mc_plop(int npar, int molox, int xc, int yc) { int ad = 1024 + xc + yc * X; @@ -208,7 +208,7 @@ } -bool floodfill_iq_plop(int npar, int xc, int yc) +boolean floodfill_iq_plop(int npar, int xc, int yc) { int ad = 1024 + xc + yc * X;
--- a/exporters.pde Fri Jul 06 19:43:56 2018 +0300 +++ b/exporters.pde Sat Jul 07 03:22:38 2018 +0300 @@ -42,7 +42,7 @@ } -bool mpImportFormat(byte[] fdata) +boolean mpImportFormat(byte[] fdata) { int x, y, x2, y2, y3, head, xx, yy, yp, ad, valu; int p1, p2, p3; @@ -388,7 +388,7 @@ } -byte[] mpExportMachinePRG(bool sorsa) +byte[] mpExportMachinePRG(boolean sorsa) { // any common text headers String src = ";machine=" + str(machine) + " (" + g_name + ")\n"; @@ -945,7 +945,7 @@ } -bool mpImportFromImage(PImage image) +boolean mpImportFromImage(PImage image) { if (image == null) return false; @@ -1217,7 +1217,7 @@ } -PImage mpRenderImage(bool border) +PImage mpRenderImage(boolean border) { PImage output;
--- a/multipaint.pde Fri Jul 06 19:43:56 2018 +0300 +++ b/multipaint.pde Sat Jul 07 03:22:38 2018 +0300 @@ -203,7 +203,7 @@ } -bool mpHaveLocalStorage() +boolean mpHaveLocalStorage() { var test = 'mpLSTest'; try { @@ -316,7 +316,7 @@ // "Save" a byte array to file. Basically creates a blob URI // and dumps it in the DOM, giving user a download. // -bool mpSaveBinaryFile(String name, byte[] data) +boolean mpSaveBinaryFile(String name, byte[] data) { var blob = mpMakeBinaryBlob(data); if (blob == null) @@ -347,7 +347,7 @@ } -void mpSavePNGImage(String name, int fmt, bool border) +void mpSavePNGImage(String name, int fmt, boolean border) { PImage simg = mpRenderImage(border); // if (g_data[int('Q')] == 0) @@ -399,7 +399,7 @@ } -int mpSetNativeImage(byte[] data, bool noError) +int mpSetNativeImage(byte[] data, boolean noError) { if (data == null) return -1; @@ -422,7 +422,7 @@ } -int mpLoadNativeImage(String name, bool noError) +int mpLoadNativeImage(String name, boolean noError) { return mpSetNativeImage( mpLoadBinaryFile(name), noError);