Mercurial > sdl-ios-xcode
comparison src/haptic/darwin/SDL_syshaptic.c @ 2564:c9348710a98a gsoc2008_force_feedback
Missed a bracket.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 31 Jul 2008 10:26:21 +0000 |
parents | be2ea885d70b |
children | 698c776c642f |
comparison
equal
deleted
inserted
replaced
2563:be2ea885d70b | 2564:c9348710a98a |
---|---|
789 | 789 |
790 /* Envelope */ | 790 /* Envelope */ |
791 if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { | 791 if ((envelope->dwAttackTime == 0) && (envelope->dwFadeTime == 0)) { |
792 SDL_free(envelope); | 792 SDL_free(envelope); |
793 dest->lpEnvelope = NULL; | 793 dest->lpEnvelope = NULL; |
794 } | |
794 else { | 795 else { |
795 envelope->dwAttackLevel = CONVERT(hap_ramp->attack_level); | 796 envelope->dwAttackLevel = CONVERT(hap_ramp->attack_level); |
796 envelope->dwAttackTime = hap_ramp->attack_length * 1000; | 797 envelope->dwAttackTime = hap_ramp->attack_length * 1000; |
797 envelope->dwFadeLevel = CONVERT(hap_ramp->fade_level); | 798 envelope->dwFadeLevel = CONVERT(hap_ramp->fade_level); |
798 envelope->dwFadeTime = hap_ramp->fade_length * 1000; | 799 envelope->dwFadeTime = hap_ramp->fade_length * 1000; |