Fix indexing into dithering buffers.