Parcourir la source

One line change, make rendering far more efficient.

master
Josh Hofing il y a 11 ans
Parent
révision
ecd30d5f7e
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      src/Render.java

+ 2
- 1
src/Render.java Voir le fichier

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


Chargement…
Annuler
Enregistrer