On Mon, 19 Dec 2022 21:48:54 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> The new macOS SDK provided by XCode 14.2 changed this macro: > `# define kCGBitmapByteOrder32Host kCGBitmapByteOrder32Little` > to this constant > `static const CGBitmapInfo kCGBitmapByteOrder32Host = > kCGBitmapByteOrder32Little;` > > As a result, our native code started to redefine the macro value to "define > kCGBitmapByteOrder32Host 0". I think that was added a long time ago for a PPC > platform. > > I have also changed the type of the color we pass to the java Robot, the java > code expects the xrgb format(the alpha ignored), but we for some reason > prepared pre-multiplied alpha. > > Tested on macOS 12.6.1 and 13.0.1 using xcode 14.2 and xcode 12.5.1 This pull request has now been integrated. Changeset: 50120396 Author: Sergey Bylokhov <s...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/50120396b6cca1219fb5dd42a11e4b29b79bd3bd Stats: 17 lines in 5 files changed: 0 ins; 12 del; 5 mod 8298887: On the latest macOS+XCode the Robot API may report wrong colors Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/11733