Fix RGB565/BGR565 issue