veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

os x rendering bug #452

Closed xTal96 closed 4 years ago

xTal96 commented 4 years ago

I'm having this bug with go-sdl2 on mac os x catalina, it seems like the renderer has a lot of padding, for example, this red box should be rendered at (0, 0):

Screen Shot 2020-02-22 at 14 55 10

after changing the window's position the box is renderer properly, like this:

Screen Shot 2020-02-22 at 14 59 12

only happens on my mac machine, tried to reproduce with same code on windows but it works fine there

veeableful commented 4 years ago

Hi @xTal96, could I bother you with providing an minimal example code that reproduces this? I simply would like to know if it's an issue with the binding or SDL2 itself.

xTal96 commented 4 years ago

I updated my os to the latest version and now it won't happen, closing