Sfoglia il codice sorgente

One line change, make rendering far more efficient.

master
Josh Hofing 11 anni fa
parent
commit
ecd30d5f7e
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      src/Render.java

+ 2
- 1
src/Render.java Vedi 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() {


Caricamento…
Annulla
Salva