Код: Выделить всё
for (unsigned int y=0; y<gx_displayprop.cyHeight; y++)
{
unsigned short * pixel = buffer;
for (unsigned int x=0; x<gx_displayprop.cxWidth; x++)
{
*pixel = PixelCol;
pixel += gx_displayprop.cbxPitch >> 1;
}
buffer += gx_displayprop.cbyPitch >> 1;
}