SFML community forums

Help => Graphics => Topic started by: NoFr1ends on July 17, 2018, 09:07:14 am

Title: Position and Size off under macOS 10.14 Beta
Post by: NoFr1ends on July 17, 2018, 09:07:14 am
Hello,

while testing macOS 10.14 Beta I discovered a bug which appears in combination with SFML.
Under macOS 10.14 all positions and sizes in the window are wrong but under macOS 10.13 everything works as expected.

I have made some examples:

200x200 Window, 100 radius circle at 0,0
(click to show/hide)

200x200 Window, 100 radius circle at 50,50
(click to show/hide)

It looks like SFML use internally only 100x100 size while the window is 200x200, maybe the viewport is generated wrong.

All projects are generated with:
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13
generating with
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14
doesn't change anything (also tried other different versions).

SFML is installed from 2.5.0 source with:
cmake
make
sudo make install

Apple Clang Version is 10.0.0 (cland-1000.10.38)

Edit: Change the scaling of the display changes nothing
Title: Re: Position and Size off under macOS 10.14 Beta
Post by: Hiura on July 20, 2018, 09:13:18 am
Because macOS 10.14 is still in Beta, anything can go wrong. But please give us some heads up if this still isn't resolved when it's officially out there. :)
Title: Re: Position and Size off under macOS 10.14 Beta
Post by: NoFr1ends on July 21, 2018, 04:24:42 pm
With the newest beta version of macOS the issue is gone.
Looks like Apple messed something up.
I will keep track of this until final release.