Skip to content

Commit

Permalink
fixed buffer init
Browse files Browse the repository at this point in the history
  • Loading branch information
mhenstell committed Mar 19, 2012
1 parent 6dafb2e commit 27fac25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dacwes.pde
Expand Up @@ -53,11 +53,12 @@ public class Dacwes {
this.port = 58082;
this.w = w;
this.h = h;
buffer = new byte[w*h+1];
bufferSize = w*h+1;
buffer = new byte[bufferSize];
this.addressingMode = ADDRESSING_VERTICAL_NORMAL;
this.pixelsPerChannel = 8;

for (int i=0; i<257; i++) {
for (int i=0; i<bufferSize; i++) {
buffer[i] = 0;
}
}
Expand Down

0 comments on commit 27fac25

Please sign in to comment.