I have an eight by eight bitmap box (24 bit) with four colors, one in each quadrant. I am trying to enlarge it to sixteen by sixteen. I am concentrating on the blue and green sections. The first attempt looks like this:

The second attempt is supposed to double each row and results in this:

The pixels do enlarge but the rows are one color, not blue and green.
The code is as follows:
if ((i % 12 == 0) && (i != 0))
{
if (wenthere == 2)
{
wenthere = 0;
i = i - 12;
}
wenthere++;
}
And the full code is here:
while (1)
{
count …