massung / CHIP-8

Assembler and Emulator in Go
http://massung.github.io/CHIP-8
zlib License
254 stars 18 forks source link

panic - Conflicting window flags specified #4

Closed renatorabelo closed 7 years ago

renatorabelo commented 7 years ago

Hi, I'm trying to build your emulator but i get a panic with the binary.

panic: Conflicting window flags specified goroutine 1 [running, locked to thread]: main.createWindow() C:/Users/rsrim/go/src/github.com/massung/CHIP-8/main.go:217 +0x17d main.main() C:/Users/rsrim/go/src/github.com/massung/CHIP-8/main.go:173 +0x274

Any ideas ?

renatorabelo commented 7 years ago

https://github.com/massung/CHIP-8/blob/master/main.go#L212 should be flags := sdl.WINDOW_OPENGL

massung commented 7 years ago

Pushed a version with the fix. Looks like the "centered" flag was for a different argument and the latest SDL version recognized the incorrect flag.

Thanks for finding that!

massung commented 7 years ago

Published a new release with the fix as well. Special thanks to you in it. ;-)