< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XRobotPeer.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 104,121 **** keyReleaseImpl(keycode); } @Override public int getRGBPixel(int x, int y) { ! int pixelArray[] = new int[1]; getRGBPixelsImpl(xgc, x, y, 1, 1, pixelArray, useGtk); return pixelArray[0]; } @Override public int [] getRGBPixels(Rectangle bounds) { ! int pixelArray[] = new int[bounds.width*bounds.height]; getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height, pixelArray, useGtk); return pixelArray; } --- 104,121 ---- keyReleaseImpl(keycode); } @Override public int getRGBPixel(int x, int y) { ! int[] pixelArray = new int[1]; getRGBPixelsImpl(xgc, x, y, 1, 1, pixelArray, useGtk); return pixelArray[0]; } @Override public int [] getRGBPixels(Rectangle bounds) { ! int[] pixelArray = new int[bounds.width*bounds.height]; getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height, pixelArray, useGtk); return pixelArray; }
*** 129,135 **** private static synchronized native void keyPressImpl(int keycode); private static synchronized native void keyReleaseImpl(int keycode); private static synchronized native void getRGBPixelsImpl(X11GraphicsConfig xgc, ! int x, int y, int width, int height, int pixelArray[], boolean isGtkSupported); } --- 129,135 ---- private static synchronized native void keyPressImpl(int keycode); private static synchronized native void keyReleaseImpl(int keycode); private static synchronized native void getRGBPixelsImpl(X11GraphicsConfig xgc, ! int x, int y, int width, int height, int[] pixelArray, boolean isGtkSupported); }
< prev index next >