SDL2 color cursors are offset on OS X |
SDL2 color cursors are offset on OS X |
Ryan C. Gordon
Guest
|
Fwiw, this seems to be working "correctly", in that the cursor's top-left pixel is touching the top left corner of the window when we report the mouse is at position (0, 0). But as soon as it bumps over just enough for Mac OS X to believe it has left the window, the system cursor sure does seem to have moved over by three pixels: https://www.dropbox.com/s/p3uqi6v4sodk7n3/Screen%20Shot%202015-06-22%20at%2010.48.16%20PM.png?dl=0 https://www.dropbox.com/s/2bvc5ncoq85tpfl/Screen%20Shot%202015-06-22%20at%2010.48.08%20PM.png?dl=0 Is that what you're seeing, too? --ryan. _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL2 color cursors are offset on OS X |
Sik
|
Is it me or it's technically at the correct position if you don't
count the white border? 2015-06-23 1:08 GMT-03:00, Ryan C. Gordon:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|
.3lite
|
Actually I have to confirm this issue. I thought that was something related to my settings but when you mentioned those 3/3 pixels offset then it sounds like the issue I have with my application on OS X. It's only related to OS X even though I have binaries for Linux and Windows, too.
|
|||||||||||
|
Re: SDL2 color cursors are offset on OS X |
historic_bruno
|
What I see is different, the SDL2 color cursor visually never makes it to the top left corner (should be 0,0 as you say), it is last visible about 3 pixels away from that point, when it transitions to the default OS X cursor outside the window. On the opposite end, in the bottom right corner, the color cursor appears well outside the window.
Note that it's not simply an edge case on window borders, but the cursor is offset over the entire window, meaning our GUI hovering and clicking effects are incorrect on OS X.
|
|||||||||||||||
|