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

feature from 5.3 #68

Open grandmaster8 opened 7 years ago

grandmaster8 commented 7 years ago

https://github.com/Tangent128/luasdl2/blob/6df26c7c24d34fdedf1b1d6557adfa06d740f50f/src/window.c#L950 in file window.c, on line 950, a Lua 5.3 function is used, however, the code should also support 5.1 and 5.2. is it a bug? https://i.imgur.com/XmepNkIr.png

grandmaster8 commented 7 years ago

I apologize in advance, maybe I'm wrong.

Tangent128 commented 7 years ago

That definitely is a bug, yes.

I'm a bit swamped this weekend, but if you don't need support for newer SDL features, does the 2.0.3.4.0 rock compile for you? It appears the 2.0.5 updates introduced that function call.