Bug 1351 - Custom pointer pixels doubled only on Mac OS X
Summary: Custom pointer pixels doubled only on Mac OS X
Alias: None
Product: Jogl
Classification: JogAmp
Component: macosx (show other bugs)
Version: 2.4.0
Hardware: All macosx
: P4 normal
Assignee: Sven Gothel
Depends on:
Reported: 2017-02-18 10:35 CET by antoine.dutot@gmail.com
Modified: 2017-02-18 10:35 CET (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description antoine.dutot@gmail.com 2017-02-18 10:35:20 CET
Hi all,

When specifying a custom window pointer with Window.setPointerIcon() the pointer image is correct on HiDPI displays in Windows 10 (at 200% scale) and Linux but its size is doubled on MacOS X when using a retina display.

This does not happen on MacOS X on a standard, non HiDPI, display. 

The pointer is created like this :

win.setPointerIcon(win.getScreen().getDisplay().createPointerIcon(new PixelRectangle.GenericPixelRect(format, new Dimension(width, height), width*4, true, buffer, hotx, hoty))

Thanks a lot for your help.