Login  Register

Re: Cursor and retina displays

Posted by 4nt01n3 on Jan 24, 2017; 1:27pm
URL: https://forum.jogamp.org/Cursor-and-retina-displays-tp4037573p4037597.html

Hi, thanks a lot for your quick answer, and sorry for my late reply.

I did that, but it does not seem to affect the cursor. It has an effect on my canvas as all suddenly becomes magnified by 2.

However, whatever the value I use (I tried 0, 0.5, 1, 2),  I get no effect on the cursor.

Or maybe I am not using the cursor API correctly ? What I am doing (I call setSurfaceScale() just after creating my window) and then :

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

With buffer containing my ARGB data.

Thanks