*pdest++= *buffer;
*pdest++= *buffer;
}
else
{
// clamp colour to full white or off
if (*buffer > 0)
{
*pdest++= 0xff;
*pdest++= 0xff;