Skip to content

Commit 0c88a19

Browse files
committed
jni: hide an implementation detail from users
1 parent 3b79f94 commit 0c88a19

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/os/JniSled.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,23 @@ public void run() {
2626
}
2727

2828
public int getMatrixX() {
29-
return matrixX;
29+
return matrixX;
3030
}
3131

3232
public int getMatrixY() {
3333
return matrixY;
3434
}
3535

36+
public int[] getCurrentBuffer() {
37+
return currentBuf;
38+
}
39+
40+
// called from out_jnibuf
3641
// TODO: maybe make this trigger a callback optionally?
3742
// could use that to let the user immediately render,
3843
// "pushing" instead of polling
3944
// this would let us have a variable frame rate dictated by sled.
40-
public void setCurrentBuffer(int[] buf) {
45+
private void setCurrentBuffer(int[] buf) {
4146
currentBuf = buf;
4247
}
43-
44-
public int[] getCurrentBuffer() {
45-
return currentBuf;
46-
}
4748
}

0 commit comments

Comments
 (0)