<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 4:02 PM, GOUJON Alexandre <span dir="ltr"><<a href="mailto:ale.goujon@gmail.com" target="_blank">ale.goujon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>On 09/19/2014 02:14 PM, Shuai Meng
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><span>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">+ 
                total = color[0] + 256 * color[1] + 256 * 256 *
              color[2];<br>
            </blockquote>
            <br>
            RGB() macro does the same thing.<br>
            <br>
          </blockquote>
        </span>
        <div>I don't quite understand this line..will you explain it in
          detail please? </div>
      </div>
    </blockquote>
    See <a href="http://source.winehq.org/source/include/wingdi.h#0434" target="_blank">http://source.winehq.org/source/include/wingdi.h#0434</a><br>
    So total = color[0] + 256 * color[1] + 256*256*color[2] is the same
    as total = RGB(color[0], color[1], color[2])<br>
  </div>

<br><br>
<br></blockquote></div>Right, it's also better to rename color component variables imho.<br></div></div>