Fix a bug in the spectrum HUD element.

It was displaying offscreen, now it's in its intended location.
Also, document the hell out of that function, because two letter
variable names are no fun, and the function isn't super clear.