Improved accuracy of DecodeRGB565 function