ifixed off by one x/y incrementer

master
Georges Kesseler 2013-07-31 20:41:09 +02:00
parent 02e6865156
commit 4ce50221d3
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ while ( true ) {
case 2: { case 2: {
// scan through line by line from top to bottom // scan through line by line from top to bottom
myWindows(xyToWindow(x,y), brightness, red, green, blue); myWindows(xyToWindow(x,y), brightness, red, green, blue);
if(x++>3) { if(x++>2) {
x=0; x=0;
if(y++>4) { if(y++>3) {
y=0; y=0;
patternSwitcher++; patternSwitcher++;
} }