< prev index next >
src/java.desktop/macosx/native/libawt_lwawt/awt/CRobot.m
Print this page
@@ -322,11 +322,11 @@
jint picY = y;
jint picWidth = width;
jint picHeight = height;
CGRect screenRect = CGRectMake(picX / scale, picY / scale,
- picWidth / scale, picHeight / scale);
+ picWidth / scale, picHeight / scale);
CGImageRef screenPixelsImage = CGWindowListCreateImage(screenRect,
kCGWindowListOptionOnScreenOnly,
kCGNullWindowID, kCGWindowImageBestResolution);
if (screenPixelsImage == NULL) {
< prev index next >