Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
JDK-8209764: JavaFX/Monocle - Partial Screen Capture Broken
Browse files Browse the repository at this point in the history
  • Loading branch information
brcolow authored and kevinrushforth committed Aug 21, 2018
1 parent 9f09ddc commit 5132973
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void getScreenCapture(int x, int y, int width, int height, int[] data, bo
int colStop = Math.min(x + width, scrWidth);
for (int row = y; row < rowStop; row++) {
for (int col = x; col < colStop; col++) {
data[row * scrWidth + col] = buffer.get(row * scrWidth + col);
data[(row - y) * (colStop - x) + (col - x)] = buffer.get(row * scrWidth + col);
}
}
}
Expand Down

0 comments on commit 5132973

Please sign in to comment.