Tangent128 / luasdl2

A pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2, and LuaJIT.
ISC License
385 stars 74 forks source link

SDL 2.0.2 Support - close #11; add .gitignore; fix GCC warning. #54

Closed Web-eWorks closed 7 years ago

Web-eWorks commented 7 years ago

Add SDL 2.0.2 support, closing #11. Also added literal format strings to address a GCC warning, and added a .gitignore entry for the build folder.

Tangent128 commented 7 years ago

Hey, thanks a ton for the contributions!

Only request is that l_glResetAttributes in gl.c lose the redundant version check, since the entire function is already only defined for SDL >2.0.2.

You already made a fix much like that in gamecontroller.c.

Web-eWorks commented 7 years ago

Done. Knew I was forgetting something.

Squashed and rebased onto latest master.

Web-eWorks commented 7 years ago

2.0.4 support is done; will submit a PR as soon as this is merged.