Fix drawing to 16-bit and 24-bit framebuffers

This patch fixes drawing to 16-bit and 24-bit framebuffers. For
16-bit framebuffer interpolation is done from 8 bit value to 5/6
bit value.

Signed-off-by: Mikko Hurskainen <mikko.hurskainen@nomovok.com>