Added casting (because I'm pedantic, okay?).
Added making literals unsigned longs so that we don't risk any compiler nonsense.
Fixed setting the color buffer (screw you, memset); Added some test patterns.