veandco / go-sdl2

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

README: update the example to work out-of-box on macOS #319

Closed martinlindhe closed 6 years ago

martinlindhe commented 6 years ago

Minor changes to the example in the readme to work out-of-the box in macOS.

Two parts:

1) without the loop (taken from #262), the window will be stuck in background and reported as "program not responding" by macOS.

2) without the surface.FillRect(nil, 0), the window is not properly cleared.

veeableful commented 6 years ago

Thanks @martinlindhe!