refactored
fixed one bad read and one memory corruption error in VideoDisplay that would
write outside of the pixel buffer and into other objects on the stack.
can't seem to reproduce the memory corruption conditions the static analyzer
describes. At least I'll have something that asserts my code when that happens
and I can debug it