[PATCH] vbscript: Implemented RGB

Nikolay Sivov bunglehead at gmail.com
Fri Sep 19 16:05:40 CDT 2014


On Fri, Sep 19, 2014 at 4:02 PM, GOUJON Alexandre <ale.goujon at gmail.com>
wrote:

>  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])
>
>
>
> Right, it's also better to rename color component variables imho.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140920/db7d9cd5/attachment.html>


More information about the wine-devel mailing list