Merge "Deal with 0 color and duplex mode in supprot lib." into nyc-dev