vertical bounds checking for multiple viewports was inverted. quiet some compiler warnings and minor corrections