Direct3D: fix typo.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Direct3D: add a new state handling when the device is lost but cannot be reset yet.

In this state, do not call Direct3D functions and exit the "Display"
and "Prepare" functions early.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
DirectDraw: cleanup and document code after removing Unicode mode.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix a segfault in LUA Service Discovery, when stack wasn't a clean state after the first iteration of the FillDescriptor loop

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Document the lazy initialization solution for the double lua context loading

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Implement lazy loading in icelast.lua, fix doc

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>