Android drawBitmap draws a kind of checkerboard pattern
<p>Okay maybe I'm missing something here but when I do  </p>

<pre><code> canvas.drawRGB(0x80, 0x80, 0x80);  
</code></pre>

<p>I get a clean and expected grey screen:
<img src="http://i.stack.imgur.com/BIqrD.png" alt=""></p>

<p>But when I use this code</p>

<pre><code>pixels = new int[800*480];
...
for(int x = 0; x &lt; 800; x++)
    {
        for(int y = 0; y &lt; 480; y++)
        {
            pixels[x+y*800] = 0xff808080;
        }
}
canvas.drawBitmap(pixels, 0, 800, 0, 0, 800, 480, false, null);
</code></pre>

<p>My phone draws something like this: (note the 'checkerboard' pattern; which shouldn't be there)
<img src="http://i.stack.imgur.com/5T64b.png" alt="enter image description here"></p>

<p>The same happens in the emulator, so I guess I'm doing something wrong?</p>
