Skip to content

Commit

Permalink
fix: accidentally used numBuffers instead of screenScales
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhulbert committed Sep 13, 2023
1 parent 3d0f1a2 commit 20f461b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private synchronized boolean checkResize() {
int numBuffers = doubleBuffered ? highestResBuffers.size() : 1;
renderIdQueue.clear();
renderIdQueue.addAll(IntStream.range(0, numBuffers).boxed().collect(Collectors.toList()));
for (int i = 0; i < numBuffers; ++i) {
for (int i = 0; i < screenScales.length; ++i) {
final double screenToViewerScale = screenScales[i];
final int w = (int)Math.ceil(screenToViewerScale * componentW);
final int h = (int)Math.ceil(screenToViewerScale * componentH);
Expand Down

0 comments on commit 20f461b

Please sign in to comment.