Fixed getcolor(palette*, int); used it to render.