Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Dec 10, 2022
1 parent 79e5700 commit 439ec4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mpo/dayon/assisted/capture/CaptureEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ private void updatePreviousCapture(Capture capture) {
private CaptureTile[] computeDirtyTiles(int captureId, byte[] capture, Dimension captureDimension) {
final int x = (int) Math.ceil((float) captureDimension.width / TILE_DIMENSION.width);
final int y = (int) Math.ceil((float) captureDimension.height / TILE_DIMENSION.height);
final int length = Math.max(x*y, previousCapture.length);
final int length = x*y;
// change in screen resolution?
if (length > previousCapture.length) {
if (length != previousCapture.length) {
previousCapture = new long[length];
resetPreviousCapture();
}
Expand Down

0 comments on commit 439ec4b

Please sign in to comment.