Merge pull request #9 from kyzentun/AMV_Kyzentun

SetDrawState replace hacky validity check and other 3 set functions
removed unused function
Merged with sigatrev upstream.