src/haptic/win32/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2629 43a0416b3707
parent 2626 53dd30491c71
child 2631 a0845d7f4398
--- a/src/haptic/win32/SDL_syshaptic.c	Wed Aug 06 10:33:16 2008 +0000
+++ b/src/haptic/win32/SDL_syshaptic.c	Wed Aug 06 10:48:35 2008 +0000
@@ -882,13 +882,9 @@
             return -1;                
          }                            
                                       
-         /* Envelope */
-/* TODO Check is envelope actually used.
-         envelope->dwAttackLevel = CONVERT(hap_condition->attack_level);
-         envelope->dwAttackTime = hap_condition->attack_length * 1000;
-         envelope->dwFadeLevel = CONVERT(hap_condition->fade_level);
-         envelope->dwFadeTime = hap_condition->fade_length * 1000;
-*/
+         /* Envelope - Not actually supported by most CONDITION implementations. */
+         SDL_free(dest->lpEnvelope);
+         dest->lpEnvelope = NULL;
 
          break;