Code variation for DirectX DirectDraw version