Fix marker drawing bug, and improve speed (by using buffers on the
stack if possible).
Authored by: mdboom 2007-11-28
Parent: [r4479]
Child: [r4481]