Fix row counting offset.

master
sigonasr2 1 year ago
parent d08769ec83
commit b063523474
  1. 6
      sample/PGEX_SMX.h

@ -50,9 +50,9 @@ public:
lightData.append(1,p.b); lightData.append(1,p.b);
col++; col++;
} }
row++; row+=2;
} }
row=0; row=1;
for(int y=i/3*7+1;y<i/3*7+7;y+=2){ for(int y=i/3*7+1;y<i/3*7+7;y+=2){
int col=0; int col=0;
for(int x=i%3*4;x<i%3*4+4;x++){ for(int x=i%3*4;x<i%3*4+4;x++){
@ -66,7 +66,7 @@ public:
lightData.append(1,p.b); lightData.append(1,p.b);
col++; col++;
} }
row++; row+=2;
} }
} }
} }

Loading…
Cancel
Save