little bug fix

This commit is contained in:
mrbesen 2017-10-26 17:23:00 +02:00
parent 2c3ec47e3f
commit dc208dbca5
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ public class PosColSelector extends PosSelector {
int green = 0; int green = 0;
int blue = 0; int blue = 0;
int count = 0; int count = 0;
for (int x = 0; x < 20; x++) { for (int x = 0; x < img.getWidth(); x++) {
for (int y = 0; y < 20; y++) { for (int y = 0; y < img.getHeight(); y++) {
int color = img.getRGB(x, y); int color = img.getRGB(x, y);
red += (color & 0x00ff0000) >> 16; red += (color & 0x00ff0000) >> 16;
green += (color & 0x0000ff00) >> 8; green += (color & 0x0000ff00) >> 8;