jacius / ruby-sdl-ffi

Ruby-FFI binding to SDL multimedia libraries. (Still in alpha)
http://jacius.github.com/ruby-sdl-ffi/
16 stars 6 forks source link

Setting the window to the foreground on OSX #3

Closed bartleusink closed 13 years ago

bartleusink commented 13 years ago

I have Mac OSX 10.6.6 with SDL 1.2.14 and for some reason the make_current_front function didn't work for me. I've added a call to GetCurrentProcess to get the correct ProcessSerialNumber for the current process, which seems to fix the issue.

jacius commented 13 years ago

Awesome, thanks for this fix! I'll check tomorrow to make sure it still works on OS X 10.5 (which is all I have), then merge it if there aren't any problems. :)

jacius commented 13 years ago

Seems to work fine. Merged and pushed in the next branch (also at rubygame/ruby-sdl-ffi@a50fb6b). Thanks, Bart! :)