| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3025,7 +3025,7 @@ protected void addPolygonTriangles() { | |||
| 3025 | 3025 | int vc = shapeLast - shapeFirst; | |
| 3026 | 3026 | int count = 2 * vc; // complex polygon detection | |
| 3027 | 3027 | ||
| 3028 | - for (int m = 0, v = vc - 1; vc > 2;) { | ||
| 3028 | + for (int v = vc - 1; vc > 2;) { | ||
| 3029 | 3029 | boolean snip = true; | |
| 3030 | 3030 | ||
| 3031 | 3031 | // if we start over again, is a complex polygon | |
@@ -3097,8 +3097,6 @@ protected void addPolygonTriangles() { | |||
| 3097 | 3097 | if (snip) { | |
| 3098 | 3098 | addTriangle(vertexOrder[u], vertexOrder[v], vertexOrder[w]); | |
| 3099 | 3099 | ||
| 3100 | - m++; | ||
| 3101 | - | ||
| 3102 | 3100 | // remove v from remaining polygon | |
| 3103 | 3101 | for (int s = v, t = v + 1; t < vc; s++, t++) { | |
| 3104 | 3102 | vertexOrder[s] = vertexOrder[t]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,26 +1,26 @@ | |||
| 1 | - <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | - <classpath> | ||
| 3 | - <classpathentry kind="src" path="src"/> | ||
| 4 | - <classpathentry kind="src" path="generated"/> | ||
| 5 | - <classpathentry kind="src" path="test/src"/> | ||
| 6 | - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
| 7 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-core"/> | ||
| 8 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-dxf"/> | ||
| 9 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-net"/> | ||
| 10 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-opengl"> | ||
| 11 | - <attributes> | ||
| 12 | - <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="opengl/library"/> | ||
| 13 | - </attributes> | ||
| 14 | - </classpathentry> | ||
| 15 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-pdf"/> | ||
| 16 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-serial"/> | ||
| 17 | - <classpathentry combineaccessrules="false" kind="src" path="/processing-video"/> | ||
| 18 | - <classpathentry kind="lib" path="lib/antlr.jar" sourcepath="lib/antlr-src.zip"/> | ||
| 19 | - <classpathentry kind="lib" path="lib/jna.jar"/> | ||
| 20 | - <classpathentry kind="lib" path="lib/ecj.jar"/> | ||
| 21 | - <classpathentry exported="true" kind="lib" path="lib/ant.jar"/> | ||
| 22 | - <classpathentry exported="true" kind="lib" path="lib/ant-launcher.jar"/> | ||
| 23 | - <classpathentry kind="lib" path="lib/apple.jar"/> | ||
| 24 | - <classpathentry kind="lib" path="test/lib/junit-4.8.1.jar"/> | ||
| 25 | - <classpathentry kind="output" path="bin"/> | ||
| 26 | - </classpath> | ||
| 1 | + <?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | + <classpath> | ||
| 3 | + <classpathentry kind="src" path="src"/> | ||
| 4 | + <classpathentry kind="src" path="generated"/> | ||
| 5 | + <classpathentry kind="src" path="test/src"/> | ||
| 6 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
| 7 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-core"/> | ||
| 8 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-dxf"/> | ||
| 9 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-net"/> | ||
| 10 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-opengl"> | ||
| 11 | + <attributes> | ||
| 12 | + <attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="opengl/library"/> | ||
| 13 | + </attributes> | ||
| 14 | + </classpathentry> | ||
| 15 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-pdf"/> | ||
| 16 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-serial"/> | ||
| 17 | + <classpathentry combineaccessrules="false" kind="src" path="/processing-video"/> | ||
| 18 | + <classpathentry kind="lib" path="lib/antlr.jar" sourcepath="lib/antlr-src.zip"/> | ||
| 19 | + <classpathentry kind="lib" path="lib/jna.jar"/> | ||
| 20 | + <classpathentry kind="lib" path="lib/ecj.jar"/> | ||
| 21 | + <classpathentry exported="true" kind="lib" path="lib/ant.jar"/> | ||
| 22 | + <classpathentry exported="true" kind="lib" path="lib/ant-launcher.jar"/> | ||
| 23 | + <classpathentry kind="lib" path="lib/apple.jar"/> | ||
| 24 | + <classpathentry kind="lib" path="test/lib/junit-4.8.1.jar"/> | ||
| 25 | + <classpathentry kind="output" path="bin"/> | ||
| 26 | + </classpath> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -124,36 +124,30 @@ public static SyntaxStyle[] getDefaultSyntaxStyles() | |||
| 124 | 124 | public static int paintSyntaxLine(Segment line, Token tokens, | |
| 125 | 125 | SyntaxStyle[] styles, | |
| 126 | 126 | TabExpander expander, Graphics gfx, | |
| 127 | - int x, int y) | ||
| 128 | - { | ||
| 127 | + int x, int y) { | ||
| 129 | 128 | Font defaultFont = gfx.getFont(); | |
| 130 | 129 | Color defaultColor = gfx.getColor(); | |
| 131 | 130 | ||
| 132 | - int offset = 0; | ||
| 133 | - for(;;) | ||
| 134 | - { | ||
| 135 | - byte id = tokens.id; | ||
| 136 | - if(id == Token.END) | ||
| 137 | - break; | ||
| 138 | - | ||
| 139 | - int length = tokens.length; | ||
| 140 | - if(id == Token.NULL) | ||
| 141 | - { | ||
| 142 | - if(!defaultColor.equals(gfx.getColor())) | ||
| 143 | - gfx.setColor(defaultColor); | ||
| 144 | - if(!defaultFont.equals(gfx.getFont())) | ||
| 145 | - gfx.setFont(defaultFont); | ||
| 146 | - } | ||
| 147 | - else | ||
| 148 | - styles[id].setGraphicsFlags(gfx,defaultFont); | ||
| 149 | - | ||
| 150 | - line.count = length; | ||
| 151 | - x = Utilities.drawTabbedText(line,x,y,gfx,expander,0); | ||
| 152 | - line.offset += length; | ||
| 153 | - offset += length; | ||
| 154 | - | ||
| 155 | - tokens = tokens.next; | ||
| 131 | + for (;;) { | ||
| 132 | + byte id = tokens.id; | ||
| 133 | + if(id == Token.END) | ||
| 134 | + break; | ||
| 135 | + | ||
| 136 | + int length = tokens.length; | ||
| 137 | + if (id == Token.NULL) { | ||
| 138 | + if(!defaultColor.equals(gfx.getColor())) | ||
| 139 | + gfx.setColor(defaultColor); | ||
| 140 | + if(!defaultFont.equals(gfx.getFont())) | ||
| 141 | + gfx.setFont(defaultFont); | ||
| 142 | + } else { | ||
| 143 | + styles[id].setGraphicsFlags(gfx,defaultFont); | ||
| 156 | 144 | } | |
| 145 | + line.count = length; | ||
| 146 | + x = Utilities.drawTabbedText(line,x,y,gfx,expander,0); | ||
| 147 | + line.offset += length; | ||
| 148 | + | ||
| 149 | + tokens = tokens.next; | ||
| 150 | + } | ||
| 157 | 151 | ||
| 158 | 152 | return x; | |
| 159 | 153 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,12 +19,15 @@ | |||
| 19 | 19 | import processing.mode.android.LogEntry.Severity; | |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | - class Device implements DeviceProperties { | ||
| 22 | + class Device { | ||
| 23 | 23 | private final Devices env; | |
| 24 | 24 | private final String id; | |
| 25 | 25 | private final Set<Integer> activeProcesses = new HashSet<Integer>(); | |
| 26 | 26 | private final Set<DeviceListener> listeners = | |
| 27 | 27 | Collections.synchronizedSet(new HashSet<DeviceListener>()); | |
| 28 | + | ||
| 29 | + // public static final String APP_STARTED = "android.device.app.started"; | ||
| 30 | + // public static final String APP_ENDED = "android.device.app.ended"; | ||
| 28 | 31 | ||
| 29 | 32 | // mutable state | |
| 30 | 33 | private Process logcat; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -53,7 +53,8 @@ public class AutoFormat implements Formatter { | |||
| 53 | 53 | private boolean EOF; | |
| 54 | 54 | private boolean a_flg, e_flg, if_flg, s_flag, q_flg; | |
| 55 | 55 | private boolean s_if_flg[]; | |
| 56 | - private int pos, lineNumber; | ||
| 56 | + private int pos; | ||
| 57 | + // private int lineNumber; | ||
| 57 | 58 | private int s_level[]; | |
| 58 | 59 | private int c_level; | |
| 59 | 60 | private int sp_flg[][]; | |
@@ -82,7 +83,7 @@ private void comment() { | |||
| 82 | 83 | buf.append(c = next()); | |
| 83 | 84 | while ((c != '/')) { | |
| 84 | 85 | if (c == '\n') { | |
| 85 | - lineNumber++; | ||
| 86 | + // lineNumber++; | ||
| 86 | 87 | writeIndentedComment(); | |
| 87 | 88 | s_flag = true; | |
| 88 | 89 | } | |
@@ -192,7 +193,7 @@ private void handleSingleLineComment() { | |||
| 192 | 193 | buf.append(c); | |
| 193 | 194 | c = next(); | |
| 194 | 195 | } | |
| 195 | - lineNumber++; | ||
| 196 | + // lineNumber++; | ||
| 196 | 197 | writeIndentedLine(); | |
| 197 | 198 | s_flag = true; | |
| 198 | 199 | } | |
@@ -298,7 +299,7 @@ private boolean getnl() { | |||
| 298 | 299 | if (c == '\n') { | |
| 299 | 300 | // eat it | |
| 300 | 301 | next(); | |
| 301 | - lineNumber++; | ||
| 302 | + // lineNumber++; | ||
| 302 | 303 | tabs = savedTabs; | |
| 303 | 304 | return true; | |
| 304 | 305 | } | |
@@ -332,7 +333,7 @@ public String format(final String source) { | |||
| 332 | 333 | result.setLength(0); | |
| 333 | 334 | indentValue = Preferences.getInteger("editor.tabs.size"); | |
| 334 | 335 | ||
| 335 | - lineNumber = 0; | ||
| 336 | + // lineNumber = 0; | ||
| 336 | 337 | q_flg = e_flg = a_flg = if_flg = false; | |
| 337 | 338 | s_flag = true; | |
| 338 | 339 | c_level = if_lev = level = paren = 0; | |
@@ -349,7 +350,7 @@ public String format(final String source) { | |||
| 349 | 350 | s_tabs = new int[20][10]; | |
| 350 | 351 | pos = -1; | |
| 351 | 352 | chars = cleanText.toCharArray(); | |
| 352 | - lineNumber = 1; | ||
| 353 | + // lineNumber = 1; | ||
| 353 | 354 | ||
| 354 | 355 | EOF = false; // set in next() when EOF | |
| 355 | 356 | ||
@@ -385,7 +386,7 @@ public String format(final String source) { | |||
| 385 | 386 | break; | |
| 386 | 387 | ||
| 387 | 388 | case '\n': | |
| 388 | - lineNumber++; | ||
| 389 | + // lineNumber++; | ||
| 389 | 390 | if (EOF) { | |
| 390 | 391 | break; | |
| 391 | 392 | } | |
@@ -499,7 +500,7 @@ public String format(final String source) { | |||
| 499 | 500 | buf.append(cc = next()); | |
| 500 | 501 | } | |
| 501 | 502 | if (cc == '\n') { | |
| 502 | - lineNumber++; | ||
| 503 | + // lineNumber++; | ||
| 503 | 504 | writeIndentedLine(); | |
| 504 | 505 | s_flag = true; | |
| 505 | 506 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1236,7 +1236,7 @@ private boolean exportApplication(File destFolder, | |||
| 1236 | 1236 | String includes = Base.contentsToClassPath(sketch.getCodeFolder()); | |
| 1237 | 1237 | // Use tokens to get rid of extra blanks, which causes huge exports | |
| 1238 | 1238 | String[] codeList = PApplet.splitTokens(includes, File.pathSeparator); | |
| 1239 | - String cp = ""; | ||
| 1239 | + // String cp = ""; | ||
| 1240 | 1240 | for (int i = 0; i < codeList.length; i++) { | |
| 1241 | 1241 | if (codeList[i].toLowerCase().endsWith(".jar") || | |
| 1242 | 1242 | codeList[i].toLowerCase().endsWith(".zip")) { | |
@@ -1245,7 +1245,7 @@ private boolean exportApplication(File destFolder, | |||
| 1245 | 1245 | Base.copyFile(exportFile, new File(jarFolder, exportFilename)); | |
| 1246 | 1246 | jarListVector.add(exportFilename); | |
| 1247 | 1247 | } else { | |
| 1248 | - cp += codeList[i] + File.pathSeparator; | ||
| 1248 | + // cp += codeList[i] + File.pathSeparator; | ||
| 1249 | 1249 | } | |
| 1250 | 1250 | } | |
| 1251 | 1251 | // packClassPathIntoZipFile(cp, zos, zipFileContents); // this was double adding the code folder prior to 2.0a2 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments