Fix PixelArray Creation Width

This commit is contained in:
Unknown 2018-02-14 17:58:37 +01:00
parent eb12e43d71
commit 56994771f0

View file

@ -81,7 +81,7 @@ class PixelArray {
pixels = new List(height); pixels = new List(height);
for (int y = 0; y < height; y++) { for (int y = 0; y < height; y++) {
pixels[y] = new List(width); pixels[y] = new List(width);
for (int x = 0; x < height; x++) { for (int x = 0; x < width; x++) {
pixels[y][x] = new Pixel(x, y, 0, 0, 0, 0); pixels[y][x] = new Pixel(x, y, 0, 0, 0, 0);
} }
} }