fixed bugs related to fullscreen mode
fixed bad bug in adsr envelope