Fix maxdepth in new profile

get_maxdepth() already gives you the correctly rounded maximum depth.
Don't mess with it.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Fix potential crash in getColor functions

If the index is out of range, just return black.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Add mean depth to new profile

With massive hand-holding by Tomaz.
Writing for the new profile code is slightly different. You don't draw
anything, you just tell the widget where things are supposed to end up and
how they are supposed to look. Really nice.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>