2014-09-19 21:02 GMT+08:00 GOUJON Alexandre <ale.goujon@gmail.com>:
On 09/19/2014 02:14 PM, Shuai Meng wrote:
+    total = color[0] + 256 * color[1] + 256 * 256 * color[2];

RGB() macro does the same thing.

I don't quite understand this line..will you explain it in detail please? 
See http://source.winehq.org/source/include/wingdi.h#0434
So total = color[0] + 256 * color[1] + 256*256*color[2] is the same as total = RGB(color[0], color[1], color[2])
Thank you, I have found  that.