Ver código fonte

One line change, make rendering far more efficient.

master
Josh Hofing 11 anos atrás
pai
commit
ecd30d5f7e
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      src/Render.java

+ 2
- 1
src/Render.java Ver arquivo

@@ -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() {


Carregando…
Cancelar
Salvar