ah, too fast once more, why oh why can't I see errors in patchs until I post them? this: + result = kMax(m_height, visHeight - should obviously read + result = kMax(result, visHeight - G.