Closed emmabritton closed 2 years ago
Replicated the bug with Glutin backend. Works with SDL2 backend.
Same issue here. This is problematic because the Glutin backend is the one suggested in the getting-started section.
Same issue on Linux.
Can confirm that this happens to me on Linux with Wayland
I believe that this is a problem on both MacOS and Linux with Wayland, according to this comment in the glutin documentation.
The page suggests to explicitly resize the window on every Resized window event. I guess this is a glutin_window thing.
Description When any piston program is run and the window is resized the graphics appear incorrectly.
To Reproduce Run this:
and then resize the window
Expected behavior The boxes should continue to appear in the centre of the window
Screenshots Initial window:
When I change the size (the square moves towards the top right as the windows grows):
Hardware and Software
Piston versions:
OS: macOS Mojave 10.14.4, 13.3-inch (2560 x 1600) - DPI is 2 Graphics card: Intel Iris Plus Graphics 640