Resend of http://www.winehq.org/hypermail/wine-patches/2005/06/0103.html, adapted to Christian's reorganisation of ddraw directory, and as attachment to avoid gmail word-wrapping the patch :)
ChangeLog: - Rewrote the light management API to allow for an unlimited amount of lights to be set, and only a subset of them to be enabled.