Merge: lib/sdl: workaround to avoid constructor callback bug
authorJean Privat <jean@pryen.org>
Thu, 25 Feb 2016 14:02:23 +0000 (09:02 -0500)
committerJean Privat <jean@pryen.org>
Thu, 25 Feb 2016 14:02:23 +0000 (09:02 -0500)
commit930eee61a23bffca8bcc5f6493ea715f8422e66c
tree06dcfc2a5782b188802101c1853b4bdc795e7870
parent0cccdc7bf5d1c525773607d18ae4ddaac4654eb6
parent6848fa5a04aac38628bf437d393e3e40955e31d1
Merge: lib/sdl: workaround to avoid constructor callback bug

This was first a temporary fix for #1941 to repair Nit games on the deskop. But it is also a nice cleanup, it brings to Nit the instantiation and the implicit cast to a more general and nullable type. The casts themselves were not very pretty using FFI callbacks.

Pull-Request: #1960
Reviewed-by: Jean Privat <jean@pryen.org>