Browse Source

One line change, make rendering far more efficient.

master
Josh Hofing 11 years ago
parent
commit
ecd30d5f7e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Render.java

+ 2
- 1
src/Render.java View File

@@ -201,7 +201,8 @@ public class Render extends Canvas implements Runnable, MouseListener,
}
public void draw(int x, int y, int color) {
_pixels[x + y * width] = color;
//if (_pixels[x + y * width] != color)
_pixels[x + y * width] = color;
}
public void clear() {


Loading…
Cancel
Save